docker设置国内镜像


linux设置镜像加速

sudo tee /etc/docker/daemon.json <<-'EOF'
{
  "registry-mirrors": ["https://tnxkcso1.mirror.aliyuncs.com"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker

mac设置镜像加速,适用于docker desktop for mac

{
  "experimental": false,
  "debug": false,
  "registry-mirrors": [
    "https://eqcxmbvw.mirror.aliyuncs.com"
  ]
}

从2020年4月开始阿里云容器镜像服务就开始收费了,珍惜免费的加速地址吧。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM