1.
sudo yum remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-engine
2.
sudo yum install -y yum-utils
sudo yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
3.
yum install docker-ce docker-ce-cli containerd.io
4. start 以后就会看到docker0
systemctl start docker
5.
docker run hello-world