Download / Install Docker ( CentOS )

Docker is widely used as container management tool.
With help of docker we can dockerise the applications, speed up its performance and run in the
containers.

We will look here today, On CentOS 7 how to download and install docker

With Yum Install Docker

Step 1 : It will update the package.

sudo yum check-update

Step 2 : Add the docker repository and install the docker.

curl -fsSL https://get.docker.com/ | sh
Add Docker Repository
Add Docker Repository

Step 3 : Enable the docker service.

sudo systemctl enable docker
Enable Docker Service
Enable Docker Service

Step 4 : Check you username with command : whoami

Step 5 : Without sudo enable the docker command to execute. In this case username is root.

sudo usermod -aG docker $(whoami)
sudo usermod -aG docker root
Docker Status
Docker Status

Step 8 : Run the docker commands to verify.

docker --version
docker
Verify Docker
Verify Docker

With Specific Docker Version

Step 1 : Enter the command to get all the docker available releases.

yum list docker-ce --showduplicates | sort -r
Verify Available Docker Versions
Verify Available Docker Versions

Step 2 : Select the specific stable version and install the docker.

sudo yum install docker-ce-3:19.03.9-3

Step 3 : Once installation is complete verify the docker version.

docker --version
docker


Check Similar Blogs :

Download / Install Docker Toolbox ( Windows 7 & Above )
Download / Install Docker Toolbox ( macOS )
Download / Install Docker Desktop ( macOS)
Download / Install Docker ( Ubuntu )

Hope this information was helpful to you.
Feel free to comment if you face any issues or have any doubts.

Leave Your Reply

Your email address will not be published. Required fields are marked *