Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade doesn't work #6

Open
jonludlam opened this issue May 20, 2016 · 0 comments
Open

Upgrade doesn't work #6

jonludlam opened this issue May 20, 2016 · 0 comments

Comments

@jonludlam
Copy link
Contributor

I upgraded docker on my laptop, which then had an API mismatch with my docker machine:

Error response from daemon: client is newer than server (client API version: 1.23, server API version: 1.22)  

I ran 'docker-machine upgrade', but no joy:

jludlam@vivacious:~$ docker-machine upgrade
Waiting for SSH to be available...
Detecting the provisioner...
Upgrading docker...
Stopping machine to do the upgrade...
Upgrading machine "default"...
Copying /home/jludlam/.docker/machine/cache/boot2docker.iso to /home/jludlam/.docker/machine/machines/default/boot2docker.iso...
Starting machine back up...
(default) Waiting for VM to start...
(default) Got VM address(10.71.76.236:22), Now waiting for SSH
Restarting docker...
jludlam@vivacious:~$ docker ps
Error response from daemon: client is newer than server (client API version: 1.23, server API version: 1.22)

I was able to upgrade manually by stopping the VM and attaching the newest boot2docker.iso to it:

vm=<my docker machine vm>
sr=<an SR>
size=<size of boot2docker iso>

vdi=`xe vdi-create sr-uuid=$sr virtual-size=$size name-label=newboot2docker.iso`
xe vdi-import uuid=$vdi filename=boot2docker.iso
vbd=`xe vbd-list vm-uuid=$vm --minimal`
xe vbd-destroy uuid=$vbd
xe vbd-create vm-uuid=$vm vdi-uuid=$vdi device=0

and then restarting the VM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant