(Click to open topic with navigation)
This topic provides instructions on installing and configuring Docker as part of your Moab Docker Integration. You should install and configure Docker on each Torque MOM Host.
If preemption is part of your system configuration, you will also need to repeat these steps on the host on which your local registry will reside. See also 2.5 Setting Up the Local Registry (Preemption Only).
In this topic:
2.2.1 Supported OS and Docker Versions
This topic provides steps for installing and configuring Docker on the supported combinations of operating systems and Docker versions, as shown in the table below.
Operating System | Docker Version |
---|---|
Red Hat-based systems | |
CentOS 7 – Default OS Install | 1.10.3 |
CentOS 7 – Yum Install | 1.12.1 |
CentOS 7 – Script Install | 1.12.1 |
Red Hat Enterprise Linux (RHEL) 7 | 1.12.1 |
SUSE-based systems | |
SUSE Linux Enterprise Server (SLES) 12 | 1.9.1 |
Docker is not supported for Scientific Linux.
2.2.2 Install and Configure Docker on CentOS 7
There are three methods for installing Docker on CentOS 7. The default OS install method installs Docker 1.10.3. The yum and script install methods install Docker 1.12.1 from the Docker repository. See https://docs.docker.com/engine/installation/linux/centos/.
2.2.2.A Default OS Install (for Docker 1.10.3)
Do the following:
yum update
yum install docker
OPTIONS='-s devicemapper --storage-opt dm.fs=xfs --exec-opt native.cgroupdriver=cgroupfs'
systemctl restart docker.service
systemctl enable docker.service
docker run hello-world
docker pull centos:6
2.2.2.B Yum Install (for Docker 1.12.1)
Do the following:
yum update
tee /etc/yum.repos.d/docker.repo <<-EOF[dockerrepo] name=Docker Repository baseurl=https://yum.dockerproject.org/repo/main/centos/7/ enabled=1 gpgcheck=1 gpgkey=https://yum.dockerproject.org/gpg EOF
yum install docker-engine
mkdir /etc/systemd/system/docker.service.d
The following is an example of the configured execstart_override.conf
file for Docker 1.12.1.
[Service] ExecStart= ExecStart=/usr/bin/dockerd -s devicemapper --storage-opt dm.fs=xfs --exec-opt native.cgroupdriver=cgroupfs
systemctl daemon-reload
systemctl restart docker.service
systemctl enable docker.service
docker run hello-world
docker pull centos:6
2.2.2.C Script Install (for Docker 1.12.1)
Do the following:
yum update
curl -fsSL https://get.docker.com/ | sh
mkdir /etc/systemd/system/docker.service.d
The following is an example of the configured execstart_override.conf
file for Docker 1.12.1.
[Service] ExecStart= ExecStart=/usr/bin/dockerd -s devicemapper --storage-opt dm.fs=xfs --exec-opt native.cgroupdriver=cgroupfs
systemctl daemon-reload
systemctl restart docker.service
systemctl enable docker.service
docker run hello-world
docker pull centos:6
2.2.3 Install and Configure Docker on RHEL 7
There are two methods for installing Docker on RHEL 7, yum install and script install. Both methods install Docker 1.12.1 from the Docker repository. See https://docs.docker.com/engine/installation/linux/rhel/.
2.2.3.A Yum Install (for Docker 1.12.1)
Do the following:
yum update
tee /etc/yum.repos.d/docker.repo <<-EOF [dockerrepo] name=Docker Repository baseurl=https://yum.dockerproject.org/repo/main/centos/7 enabled=1 gpgcheck=1 gpgkey=https://yum.dockerproject.org/gpg EOF
yum install docker-engine
mkdir /etc/systemd/system/docker.service.d
The following is an example of the configured execstart_override.conf
file for Docker 1.12.1.
[Service] ExecStart= ExecStart=/usr/bin/dockerd -s devicemapper --storage-opt dm.fs=xfs --exec-opt native.cgroupdriver=cgroupfs
systemctl daemon-reload
systemctl restart docker.service
systemctl enable docker.service
docker run hello-world
docker pull centos:6
2.2.3.B Script Install (for Docker 1.12.1)
Do the following:
yum update
curl -fsSL https://get.docker.com/ | sh
mkdir /etc/systemd/system/docker.service.d
The following is an example of the configured execstart_override.conf
file for Docker 1.12.1.
[Service] ExecStart= ExecStart=/usr/bin/dockerd -s devicemapper --storage-opt dm.fs=xfs --exec-opt native.cgroupdriver=cgroupfs
systemctl daemon-reload
systemctl restart docker.service
systemctl enable docker.service
docker run hello-world
docker pull centos:6
2.2.4 Install and Configure Docker on SLES 12
The latest supported Docker packages are inside the Container module. Do the following:
SUSEConnect -p sle-module-containers/12/x86_64 -r ''
The ''
following the -r
flag above is two single quotes. It is necessary to avoid a limitation of SUSEConnect.
zypper install docker
DOCKER_OPTS='-s devicemapper --storage-opt dm.fs=xfs --exec-opt native.cgroupdriver=cgroupfs'
systemctl restart docker.service
systemctl enable docker.service
docker run hello-world
docker pull centos:6