boot2docker / osx-installer

Docker installer for Mac OS X
Apache License 2.0
1.25k stars 258 forks source link

Can't upgrade via cli from 1.3.0 #91

Closed schmunk42 closed 9 years ago

schmunk42 commented 9 years ago

I tried to boot2docker upgrade also and manually...

Kraftbuch:~ tobias$ boot2docker stop
Kraftbuch:~ tobias$ boot2docker download
Latest release for boot2docker/boot2docker is v1.3.2
Downloading boot2docker ISO image...
Success: downloaded https://github.com/boot2docker/boot2docker/releases/download/v1.3.2/boot2docker.iso
    to /Users/tobias/.boot2docker/boot2docker.iso
Kraftbuch:~ tobias$ boot2docker start
Waiting for VM and Docker daemon to start...
................ooo
Started.
Writing /Users/tobias/.boot2docker/certs/boot2docker-vm/ca.pem
Writing /Users/tobias/.boot2docker/certs/boot2docker-vm/cert.pem
Writing /Users/tobias/.boot2docker/certs/boot2docker-vm/key.pem
Your environment variables are already set correctly.

But it's still the old version.

Kraftbuch:~ tobias$ boot2docker -v
Boot2Docker-cli version: v1.3.0
Git commit: deafc19
Usage: boot2docker [<options>] {help|init|up|ssh|save|down|poweroff|reset|restart|config|status|info|ip|socket|shellinit|delete|download|upgrade|version} [<args>]

Workaround: Use the installer package manually.

wpp commented 9 years ago

I ran into the same issue a release back. As far as I can remember the irc channel told me to always install via release package manually (.pkg)

schmunk42 commented 9 years ago

If there's a reason that is not possible on OS X, it should print a notice and not download the .iso.

SvenDowideit commented 9 years ago
$ boot2docker -v
Boot2Docker-cli version: v1.3.0

is not the version of the iso, nor the version of the boot2docker vm that you're running. its only the version of the boot2docker cli tool.

What you did above is to successfully upgrade your virtual machine to 1.3.2 - leaving the boot2docker cli at 1.3.0, which is fine, as i don't recal it changing much.

(there is the problem with the osx docker client still being unupgraded)

upgrading the b2d-cli and the docker client from boot2docker upgrade is pretty much a pull request away (open source being contribution based..) - and one of those 2 was already written - see the boot2docker-cli repo.

schmunk42 commented 9 years ago

Thanks for the info, looks like I mixed it up.