docker-machine
provides an upgrade
command, however it only upgrades to the latest stable version
I want to install 1.10RC2 on my docker machines and I am uncertain the steps to do this
UPDATE
On the docker releases page it shows this command:
curl -fsSL https://test.docker.com/ | sh
I thought I'd try that out. I ssh'd in via docker-machine ssh swarm-master
and ran it.
It looked promising... running it appears to be an install/upgrade script, it did a bunch of stuff. Afterwards:
root@swarm-master:~# docker version
Client:
Version: 1.10.0-rc2
API version: 1.22
Go version: go1.5.3
Git commit: c1cdc6e
Built: Wed Jan 27 22:14:06 2016
OS/Arch: linux/amd64
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
Seems to have upgraded, but daemon not running.
https://docs.docker.com/engine/articles/systemd/ shows a couple of ways. I tried:
$ sudo systemctl start docker
and
$ sudo service docker start
In both cases the command returns without output but hasn't seemed to have done anything, the daemon is still not running.
My host is Debian 8.
I can do docker daemon
and it runs in foreground... doing so for the first time it went through and migrated all my images... seems to work fine but
So my question is now - how to properly (as in: same way that docker-machine would do it) run the daemon?
So, I found a way:
Wait for the daemon to update all the images to 1.10 format and then leave it running.
Meanwhile in another shell:
(I don't know why we have to do this, but the last restart fails without it)
The command should complete, albeit with the following warning:
Then:
At this point you should see the master upgraded and running:
Repeat the same steps (minus the
eval
env
) for each machine in the swarm.Unfortunately there is still a problem:
Looks good yeah?
But:
Only one node recognised as part of the swarm :(
To fix this, go in to the missing swarm node:
docker info
should now show both nodes are in the swarm.Surprised this has not been properly answered yet, and perhaps things changed but this is very easy. I just ran this test on a swarm with a master and two members.
Before:
Here are the commands in order:
After: