系统:CentOS Linux release 7.2 (Core) 3.10.0-693.11.6.el7.x86_64
SELinux:关闭
# cp -n /lib/systemd/system/docker.service /etc/systemd/system/docker.service
# sed -i "s|ExecStart=/usr/bin/docker daemon|ExecStart=/usr/bin/docker daemon --registry-mirror=https://0e327g5b.mirror.aliyuncs.com|g" /etc/systemd/system/docker.service
# sed -i "s|ExecStart=/usr/bin/dockerd|ExecStart=/usr/bin/dockerd --registry-mirror=https://0e327g5b.mirror.aliyuncs.com|g" /etc/systemd/system/docker.service
# systemctl daemon-reload
# systemctl restart docker.service
加速器地址需要自己申请,根据平台不同,地址不同
附上:阿里云教程地址