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
原文地址:https://www.cnblogs.com/zipon/p/8847340.html
时间: 2024-10-14 22:55:45