Installing Docker

For genneral information about docker please visit docs.docker.com

Key Agents require version 18.09 of Docker which might not be the default version in your cloud. The instructions below show how to install versions of docker which our agents support.

Ubuntu 18.04

apt update && apt install -y docker.io

AWS Linux

AWS Linux AMI version 1 cannot install 18.09 the following commands will install 18.06.1-ce which works correctly.

On a completely new instance:

Amazon Linux AMI

sudo yum update -y
sudo yum upgrade
sudo yum install -y docker
sudo usermod -aG docker $USER
exit
# ssh back to instance
sudo service docker start

AWS Linux 2

On a completely new instance:

Amazon Linux 2 AMI (HVM), SSD Volume Type
amzn2-ami-hvm-2.0.20190508-x86_64-gp2 (ami-0cb72367e98845d43)


sudo yum update -y
sudo amazon-linux-extras install docker
sudo service docker start
sudo usermod -a -G docker ec2-user
exit

Cent OS 7

yum install -y docker
yum remove -y docker docker-common docker-selinux docker-engine
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install -y docker-ce
systemctl enable docker.service
systemctl start docker.service

Red Hat Enterprise Linux 7.5 (RHEL)

yum update -y
yum-config-manager --enable rhui-REGION-rhel-server-extras
yum install -y container-selinux yum-utils
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install -y docker-ce
systemctl enable docker.service
systemctl start docker.service

Cloud Provider Instructions

Note

The cloud provider default version of Docker might not be compatible with our agents

These are the links to install cloud provider versions of docker on AWS and Azure instances.