« Back to projectatomic.io
Ask Your Question

How to upgrade Docker

asked 2014-08-20 14:31:24 +0000

Andre Fernandes gravatar image

updated 2014-08-20 16:55:10 +0000

For those who are still stuck with docker 1.0.0, I found this way to upgrade docker with the latest binary version:

rm -f docker-latest
curl https://get.docker.io/builds/Linux/x86_64/docker-latest > docker-latest
systemctl stop docker
systemctl stop docker.socket
#  /usr/local/bin precedes /usr/bin in PATH
cp docker-latest /usr/local/bin/docker
chmod +x /usr/local/bin/docker
# now the daemon - ONLY if you did not make this copy before
cp /usr/lib/systemd/system/docker.service /etc/systemd/system/
chmod +w /etc/systemd/system/docker.service
sed -i 's/usr\/bin/usr\/local\/bin/g' /etc/systemd/system/docker.service
chcon -v --reference /usr/bin/docker /usr/local/bin/docker
systemctl daemon-reload
systemctl start docker.socket
systemctl start docker

The question is, is this supported? Or will there be nasty surprises?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2014-09-12 04:15:35 +0000

Andre Fernandes gravatar image

This is working beautifully :)

edit flag offensive delete link more

answered 2014-09-09 12:31:05 +0000

jzb gravatar image

I don't believe this is supported. Have you run into any issues? We should be updating the Docker packages in upcoming releases of Fedora Atomic and CentOS atomic, as those spin up to regular releases there shouldn't be such a lag between Docker upstream and our packages.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower


Asked: 2014-08-20 14:31:24 +0000

Seen: 2,594 times

Last updated: Sep 12 '14