IT评测·应用市场-qidao123.com
标题:
Docker 拉取镜像速度慢,轻易失败?
[打印本页]
作者:
麻花痒
时间:
2025-1-11 23:58
标题:
Docker 拉取镜像速度慢,轻易失败?
1.问题
在国内,通过docker 拉取镜像非常慢,而且常常失败
2.解决办法
设置国内镜像源。
这里以Docker Desktop为例,起首,打开Docker Desktop,找到设置,类似⚙️这个图标,在左侧找到Docker Engine,在右侧设置中,填入如下信息:
{
"builder": {
"gc": {
"defaultKeepStorage": "20GB",
"enabled": true
}
},
"experimental": false,
"features": {
"buildkit": true
},
"registry-mirrors": [
"http://hub-mirror.c.163.com",
"https://mirrors.tuna.tsinghua.edu.cn",
"http://mirrors.sohu.com",
"https://ustc-edu-cn.mirror.aliyuncs.com",
"https://ccr.ccs.tencentyun.com",
"https://docker.m.daocloud.io",
"https://docker.awsl9527.cn"
]
}
复制代码
然后点击Apply & restart即可。
3.接着再去通过docker 命令举行镜像的拉取就非常快了。
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
欢迎光临 IT评测·应用市场-qidao123.com (https://dis.qidao123.com/)
Powered by Discuz! X3.4