How to install Docker in Ec2
Docker is an open platform for developers and sysadmins to build, ship, and run distributed applications, whether on laptops, data center VMs, or the cloud.
This article explains the steps to install Docker in Ec2 instance.
Step1: Login to Ec2 instance as root.
Step2: Update the repositories.
#yum update -y
Step3: Install Docker.
#yum install -y docker
Step4: Start the Docker service
#service docker start
Step5: Enable docker service to run in the system startup.
#chkconfig docker on
Step6: Add ec2-user to the docker group inorder to run docker commands without root privileges(sudo).
#usermod -aG docker ec2-user
That's all……..