字数 142,阅读大约需 1 分钟
前面安装OpenWebUI时,有小伙伴问Docker拉取镜像很慢的问题,这类的还有gcr.io、k8s.gcr.io、ghcr.io、nvcr.io、quay.io相关镜像,会非常慢,有时还会超时,即使配置了registry-mirrors有时也会出问题。
解决办法
使用国内的镜像源即可,这里感谢南京大学的镜像源
• 可以将 https://docker.nju.edu.cn配置到/etc/docker/daemon.json文件的registry-mirrors中
1 2 3 4 5 { "registry-mirrors":[ "https://docker.nju.edu.cn/" ]}
• 也可以替换网站前缀 • 将 gcr.io替换为gcr.nju.edu.cn• 将 k8s.gcr.io替换为 `gcr.nju.edu.cn/google-containers• 将 ghcr.io替换为ghcr.nju.edu.cn• 将 nvcr.io替换为ngc.nju.edu.cn• 将 quay.io替换为quay.nju.edu.cn
如:ghcr.io/open-webui/open-webui:v0.8.12 可以使用这样拉取
1 docker pull ghcr.nju.edu.cn/open-webui/open-webui:v0.8.12
夜雨聆风