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

Commit 4a02eca

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

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,40 @@ 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/youruser/.boot2docker/boot2docker.iso
216+
Waiting for VM and Docker daemon to start...
217+
.................ooo
218+
Started.
219+
```
220+
221+
This will back up your current `docker` and `boot2docker` binaries to
222+
`~/.boot2docker` and download the latest ISO, `docker` binary and `boot2docker`
223+
binary in place of the old versions.
190224

191225

192226
## Contribution

0 commit comments

Comments
 (0)