In this post, I will be taking you through end to end steps to set up Docker on Linux machine.
To visit more such posts, follow: #TestEnvironment
Step 1 - Avail 64 bit Linux Step 2 - Update Linux with command - sudo yum update Step 3 - Install Docker with command - sudo yum install Step 4 - Verify Docker Installation Step 5 - Start Docker Service Step 6 - Add user to the docker group
As per this link -System needs to be 64 bit with kernel version 3.1 or higher
Verify that system is 64 bit with below command
Run below command to update all the packages available on the system:
sudo yum update
Use below command to install Docker:
sudo yum install -y docker
Use below commands to verify:
Use below command:
sudo service docker start
Verify docker service is up with below command:
sudo docker info
Add your logged in user( in this case it is ec2-user) to the docker group so you can execute Docker commands without using Sudo.
sudo usermod -aG docker <Logged In UserName>
Re-login to make the changes effective else you will get permission denied error.
Congratulations Docker is installed and up n running on your Linux system!