Skip to content
This repository was archived by the owner on Feb 27, 2018. It is now read-only.

Commit 69e84dd

Browse files
Add small doc section on upgrade
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
1 parent 5d67082 commit 69e84dd

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,48 @@ You can override the configurations using matching command-line flags. Type
187187
`boot2docker -h` for more information. The configuration file options are
188188
the same as the command-line flags with long names.
189189

190+
## Upgrade
191+
192+
You can use boot2docker-cli to upgrade:
193+
194+
1. The ISO you are using in the VM (and consequently the Docker daemon version)
195+
2. The Docker client binary on your host system
196+
3. The boot2docker-cli binary itself
197+
198+
To do so, run the `boot2docker upgrade` command.
199+
200+
```
201+
$ boot2docker upgrade
202+
Backing up existing docker binary...
203+
Downloading new docker client binary...
204+
Success: downloaded https://get.docker.com/builds/Darwin/x86_64/docker-latest
205+
to /usr/local/bin/docker
206+
The old version is backed up to ~/.boot2docker.
207+
Backing up existing boot2docker binary...
208+
Downloading new boot2docker client binary...
209+
Success: downloaded https://github.com/boot2docker/boot2docker-cli/releases/download/v1.4.0/boot2docker-v1.4.0-darwin-amd64
210+
to /usr/local/bin/boot2docker
211+
The old version is backed up to ~/.boot2docker.
212+
Latest release for boot2docker/boot2docker is v1.4.0
213+
Downloading boot2docker ISO image...
214+
Success: downloaded https://github.com/boot2docker/boot2docker/releases/download/v1.4.0/boot2docker.iso
215+
to /Users/nathanleclaire/.boot2docker/boot2docker.iso
216+
Waiting for VM and Docker daemon to start...
217+
.................ooo
218+
Started.
219+
Writing /Users/nathanleclaire/.boot2docker/certs/boot2docker-vm/ca.pem
220+
Writing /Users/nathanleclaire/.boot2docker/certs/boot2docker-vm/cert.pem
221+
Writing /Users/nathanleclaire/.boot2docker/certs/boot2docker-vm/key.pem
222+
223+
To connect the Docker client to the Docker daemon, please set:
224+
export DOCKER_HOST=tcp://192.168.59.103:2376
225+
export DOCKER_CERT_PATH=/Users/nathanleclaire/.boot2docker/certs/boot2docker-vm
226+
export DOCKER_TLS_VERIFY=1
227+
```
228+
229+
This will back up your current `docker` and `boot2docker` binaries to
230+
`~/.boot2docker` and download the latest ISO, `docker` binary and `boot2docker`
231+
binary in place of the old versions.
190232

191233

192234
## Contribution

0 commit comments

Comments
 (0)