1、国内加速站点
https://registry.docker-cn.com
http://hub-mirror.c.163.com
2、创建/etc/docker/daemon文件并且配置好加速站点
mkdir -p /etc/docker
cat << EOF | tee /etc/docker/daemon.json
{
"registry-mirrors": ["https://registry.docker-cn.com"]
}
EOF
3、重启docker服务
systemctl daemon-reload
systemctl restart docker