How to Install Docker Engine on CentOS?

Prerequisites

1. Need one Linux VPS/Dedicated Server
OS Requirement: CentOS 7 or 8
(you can buy a linux dedicated server by visiting https://www.kmwebsoft.com )

The centos-extras the repository must be enabled.

Uninstall old Docker (If any) using commands bellow:

```
$ sudo yum remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-engine
```

SET UP THE REPOSITORY
Using commands below:


```

$ sudo yum install -y yum-utils

$ sudo yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo


```

INSTALL DOCKER ENGINE

```
$ sudo yum install docker-ce docker-ce-cli containerd.io

$ yum list docker-ce --showduplicates | sort -r

$ sudo yum install docker-ce-<VERSION_STRING> docker-ce-cli-<VERSION_STRING> containerd.io

$ sudo systemctl start docker

```

UPGRADE DOCKER ENGINE

 

To upgrade Docker Engine, download the newer package file and repeat the installation procedure,
using yum -y upgrade instead of yum -y install, and pointing to the new file.


If you need any help then please write to us at  [email protected]


Thanks for your visit!
Have a good time!

Was this answer helpful?

 Print this Article

Also Read

How to Install AzuraCast on CentOs 7?

How to Install AzuraCast on CentOs 7?A step by step commands to Install Azuracast on your Linux...

System Requirements For AzuraCast

System Requirements For AzuraCast1. Require one VPS/dedicated serveryou can buy the best popular...