卸载docker
yum remove docker
docker-client
docker-client-latest
docker-common
docker-latest
docker-latest-logrotate
docker-logrotate
docker-selinux
docker-engine-selinux
docker-engine
安装docker-ce
yum install -y yum-utils
device-mapper-persistent-data
lvm2
设置稳定存储库
yum-config-manager
–add-repo
https://download.docker.com/linux/centos/docker-ce.repo
启用edge和测试存储库
yum-config-manager --enable docker-ce-edge ##disable
yum-config-manager --enable docker-ce-test
安装docker-ce
yum install -y docker-ce
配置自启
chkconfig docker on
service docker start