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 effectTest that docker is running
docker run hello-worldTo automatically start the Docker service on boot with SystemD (Centos)
sudo systemctl enable docker
With chkconfig
sudo chkconfig docker on