Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 1.14 KB

File metadata and controls

38 lines (27 loc) · 1.14 KB

Install Docker

Install Docker for your host OS

For AWS Linux

sudo yum update -y
sudo yum install -y docker
sudo service docker start

Optional - Follow the Linux post-installation steps for Docker to create a Docker user group. This is required for the job2docker process to be able to invoke Docker without sudo. Note that this grants root equivalent privileges to the account so it must be used with care.

sudo groupadd docker
sudo usermod -aG docker $USER
# logout and log back in so the settings take effect

Test that docker is running

docker run hello-world

To automatically start the Docker service on boot with SystemD (Centos)

sudo systemctl enable docker

With chkconfig

sudo chkconfig docker on