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.