安装 docker
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum-config-manager --add-repo
yum list docker-ce --showduplicates | sort -r
yum install docker-ce-18.03.1.ce
systemctl start docker
修改镜像
curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://1fd431e4.m.daocloud.io
启动失败
vi /etc/docker/daemon.json
{"registry-mirrors": ["http://1fd431e4.m.daocloud.io"]}
最后需要重启启动diocker