top of page

LearningMilestone by Anuradha Agarwal is a one-stop place for coding classes for kids and workshops for teachers and parents and self-paced courses, a blog for everyone to learn python programming with a personalized approach by an experienced instructor with a decade of experience in the software industry.

  • Writer's pictureAnuradha Agarwal

Docker for Testers: Setup Docker on Linux and Basic docker commands

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

Here I assume you already have Linux instance. We will be setting up Docker on AWS Linux instance. In case you do not know, how to connect AWS Linux instance, visit this post or this video

  • 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

uname -r

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:

docker --version

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!

235 views0 comments

Recent Posts

See All


bottom of page