====== Installing Docker on various platforms ======
===== On RHEL 7.4 (eg on AWS) =====
The version of Docker CE that works for us on RHEL7.4 is 17.03.02
Post login
Step 1 is to add the Docker CE repo like so
yum install -y yum-utils
yum-config-manager --add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
yum makecache fast
If you tried to install Docker CE on RHEL7.4 using ''yum-install'' you might get
---> Package libtool-ltdl.x86_64 0:2.4.2-22.el7_3 will be installed
--> Finished Dependency Resolution
Error: Package: docker-ce-17.09.0.ce-1.el7.centos.x86_64 (docker-ce-stable)
Requires: container-selinux >= 2.9
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
The reason this fails is that the latest version of Docker CE is not supported on RHEL7.4. You need to install the 17.03.02 version. Use this command
yum install --setopt=obsoletes=0 \
docker-ce-17.03.2.ce-1.el7.centos.x86_64 \
docker-ce-selinux-17.03.2.ce-1.el7.centos.noarch
Then the usual ''systemctl start docker'' ought to get you going.
===== On SUSE Enterprise Linux 12 =====
The good news here is Docker is probably already installed.
If you dont find it, use YAST and enable the Container module. For more instructions https://github.com/Shopify/docker/blob/master/docs/installation/linux/SUSE.md