« Back to projectatomic.io
Ask Your Question

How to install Docker Compose

asked 2016-10-04 21:32:37 +0000

whgibbo gravatar image

Hi, New to using Atomic, just installed Centos Atomic :)

Was just wondering how I go about install Docker Compose or upgrade the Docker engine ?


edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2016-12-25 18:51:35 +0000

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

Verify here:

$ docker version | egrep "Server|Client|Version"
  Version:  1.10.3
   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"
  Version:  1.12.3
   Version: 1.12.3

If that still isn't adequate you might want to look at Package Layering.

edit flag offensive delete link more

answered 2016-10-12 23:34:58 +0000

portdirect gravatar image

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).

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: 2016-10-04 21:32:37 +0000

Seen: 525 times

Last updated: Dec 25 '16