1.登录 https://cr.console.aliyun.com/#/imageList
2.点击加速器tab,获取自己的加速器地址,然后执行黑框内的命令。
1.sudo mkdir -p /etc/docker 2.sudo tee /etc/docker/daemon.json <<-'EOF' { "registry-mirrors": ["https://XXXXX.mirror.aliyuncs.com"] } EOF 3.sudo systemctl daemon-reload 4.sudo systemctl restart docker