docker / machine

Machine management for a container-centric world
https://docs.docker.com/machine/
Apache License 2.0
6.63k stars 1.97k forks source link

Upgrade should support --virtualbox-boot2docker-url #1459

Open jamshid opened 9 years ago

jamshid commented 9 years ago

The upgrade docs imply it supports specifying the iso https://docs.docker.com/machine/, but that option only appears to work with create. Seems useful and consistent to allow a specific iso to be specified, e.g. to easily upgrade your docker server to an RC build.

$ docker-machine -v
docker-machine version 0.3.0 (HEAD)

$ docker-machine upgrade --virtualbox-boot2docker-url https://github.com/tianon/boot2docker/releases/download/v1.7.1-rc1/boot2docker.iso dev
Incorrect Usage.
Usage: docker-machine upgrade [arg...]
Upgrade a machine to the latest version of Docker
Description:
   Argument(s) are one or more machine names.

FYI this workaround accomplished what I wanted to do:

$ docker-machine stop dev
$ cp -p ~/Downloads/boot2docker.iso ~/.docker/machine/machines/dev/
$ docker-machine start dev
$ docker version
Client version: 1.7.0
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 0baf609
OS/Arch (client): darwin/amd64
Server version: 1.7.1-rc1

This came out of https://github.com/docker/docker/pull/14264#issuecomment-118207340.

thaJeztah commented 9 years ago

Thanks @jamshid !

lamroger commented 8 years ago

Bumping since it affected me too. A note on the docs would be helpful at least.

nateberkopec commented 8 years ago

Linking #2203 because it's a possible solution/fix for this issue.