首先訪問 登錄阿里雲 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
