Centos7: ~~~ yum –y update 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 makecache fast yum -y install docker-ce systemctl start docker && systemctl enable docker ~~~ 加速器配置 ~~~ mkdir -p /etc/docker tee /etc/docker/daemon.json <<-'EOF' { "registry-mirrors": ["https://kw88y6eh.mirror.aliyuncs.com"] } EOF systemctl daemon-reload && systemctl restart docker ~~~