docker 镜像阿里加速器
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