systemctl stop docker
rpm -qa | grep docker
See that delete the
yum erase docker \ docker-client \ docker-client-latest \ docker-common \
find /etc/systemd -name '*docker*' -exec rm -f {} \; find /lib/systemd -name '*docker*' -exec rm -f {} \;
# Delete the existing image before and container
rm -rf / var / lib / docker
rm -rf /var/run/docker
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
here if there is an error, python version upgrades lead to
see python2 version of the location where the modification yum- python2 position to the first row of the config-manager.
whereis python2
yum list docker-ce --showduplicates | sort -r
yum install docker-ce -y
systemctl start docker systemctl enable docker
docker version
the current version is 19.03