首先访问 登录阿里云 https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors,会获取专属的镜像地址
centos用户执行下列操作即可
sudo mkdir -p /etc/docker sudo tee /etc/docker/daemon.json <<-'EOF' { "registry-mirrors": ["自己的镜像地址"] } EOF sudo systemctl daemon-reload sudo systemctl restart docker