Docker 配置国内镜像源

  |   0 评论   |   0 浏览
mkdir -p /etc/docker
tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": [
"https://kfwkfulq.mirror.aliyuncs.com",
"https://2lqq34jg.mirror.aliyuncs.com",
"https://pee6w651.mirror.aliyuncs.com",
"https://registry.docker-cn.com",
"http://hub-mirror.c.163.com"
],
"dns": ["8.8.8.8","8.8.4.4"]
}
EOF
systemctl daemon-reload
systemctl restart docker

reference:https://blog.oioweb.cn/index.php/archives/1347.html


标题:Docker 配置国内镜像源
作者:SmiteLi
地址:https://smite.site/articles/2020/09/05/1599283458587.html