无数次的拉镜像让人崩溃:
root@node11:~/ragflow/docker# more rag.sh
#export HTTP_PROXY=http://192.168.207.127:7890
#export HTTPS_PROXY=http://192.168.207.127:7890
#export NO_PROXY=localhost,127.0.0.1,.aliyun.com
docker compose -f docker-compose-gpu-CN-oc9.yml up -d
root@node11:~/ragflow/docker# nohup ./rag.sh > ./rag.log &
root@node11:~/ragflow/docker# tail -f rag.log
代理不好使的情况下,需要更换最新的镜像源地址:
"registry-mirrors": [
--暂时好使
"https://docker.unsee.tech",
"https://dockerpull.org",
"https://docker.1panel.live",
"https://dockerhub.icu",
--以下失效
"https://docker.m.daocloud.io",
"https://dockerproxy.com",
"https://docker.mirrors.ustc.edu.cn",
"https://docker.nju.edu.cn",
"https://ijuu9kaj2.mirror.aliyuncs.com",
"http://hub-mirror.c.163.com",
"https://cr.console.aliyun.com",
"https://hub.docker.com",
"http://mirrors.ustc.edu.cn"
]
root@node11:~/ragflow/docker# cat /etc/docker/daemon.json
{
"runtimes": {
"nvidia": {
"path": "nvidia-container-runtime",
"runtimeArgs": []
}
},
"registry-mirrors": [
"https://docker.unsee.tech",
"https://dockerpull.org",
"https://docker.1panel.live",
"https://dockerhub.icu",
"https://docker.m.daocloud.io",
"https://dockerproxy.com",
"https://docker.mirrors.ustc.edu.cn",
"https://docker.nju.edu.cn",
"https://ijuu9kaj2.mirror.aliyuncs.com",
"http://hub-mirror.c.163.com",
"https://cr.console.aliyun.com",
"https://hub.docker.com",
"http://mirrors.ustc.edu.cn"
]
}
sudo systemctl daemon-reload && sudo systemctl restart docker
相关参考:
下面腾讯云汇总这个连接是关键地址:
目前国内可用Docker镜像源汇总(截至2024年11月)-腾讯云开发者社区-腾讯云
彻底解决docker:docker: Get https://registry-1.docker.io/v2/: net/http: request canceled 报错-****博客
https://github.com/infiniflow/ragflow/issues/1280