您的位置 首页 docker

阿里云docker镜像加速器

阿里云加速

https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors

修改daemon配置文件/etc/docker/daemon.json来使用加速器

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

 

 

案例:

vim /etc/docker/daemon.json
{
  "registry-mirrors": ["https://r8ureogc.mirror.aliyuncs.com"],
  "dns": ["114.114.114.114","8.8.8.8"],
  "data-root": "/data/docker"
}

 

 

223.5.5.5  阿里云的 DNS服务器。

欢迎来撩 : 汇总all

白眉大叔

关于白眉大叔linux云计算: 白眉大叔

热门文章