How to install Docker on CentOS 7
Uninstall old version
sudo yum remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-engine
Add Repo
yum install -y yum-utils
yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
Start installation
yum install docker-ce docker-ce-cli containerd.io
Enable auto startup and check status
systemctl start docker
systemctl enable docker
systemctl status docker