Hi, New to using Atomic, just installed Centos Atomic :)
Was just wondering how I go about install Docker Compose or upgrade the Docker engine ?
How far do you need to upgrade the docker engine? The atomic images come with two versions of the docker engine installed. The stable "docker" package, and the more up to date "docker-latest" package (though this could still lag behind what is available on docker.io).
You should be able to enable docker-latest with this:
systemctl disable docker systemctl stop docker systemctl enable docker-latest systemctl start docker-latest
$ docker version | egrep "Server|Client|Version" Client: Version: 1.10.3 Server: Version: 1.12.3
Notice that the client version is still 1.10. Since both versions are installed they need different executable names. So if you need the new docker client features you need to use the "docker-latest" command like this
$ docker-latest version | egrep "Server|Client|Version" Client: Version: 1.12.3 Server: Version: 1.12.3
If that still isn't adequate you might want to look at Package Layering.
You can install docker compose, using the method described at the official docs:
curl -L https://github.com/docker/compose/releases/download/1.8.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose
Upgrading the docker engine requires either rebuilding the ostree with the updated rpm, or you can download the docker release .tgz from https://github.com/docker/docker/rele... , and extract the binaries to the /usr/local/bin directory and update systemd unit to point to the new location (I've not tested the latter since docker split from a single static binary).
Asked: 2016-10-04 21:32:37 +0000
Seen: 434 times
Last updated: Dec 25 '16