docker:docker: Get https://registry-1.docker.io/v2/: net/http: request canceled

无数次的拉镜像让人崩溃:

复制代码
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 报错-CSDN博客

https://github.com/infiniflow/ragflow/issues/1280

相关推荐
EMTime3 小时前
Docker运行OpenWRT
运维·docker·容器
zyl837216 小时前
Docker 使用手册
运维·docker·容器
XLYcmy6 小时前
全链路验证测试系统:一个针对智能代理(Agent)系统全链路能力的自动化验证脚本
分布式·python·http·网络安全·ai·llm·agent
“码”力全开7 小时前
解耦异构算力与多协议接入:基于Docker与源码交付的开源企业级GB28181/RTSP边缘计算AI视频管理平台架构深度解析
人工智能·docker·开源
maomao大哥闯天下8 小时前
K8s如何实现滚动更新、健康检查与探测机制
docker·容器·kubernetes
kaisun648 小时前
Docker 构建网络问题排查
网络·docker·eureka
楼田莉子9 小时前
Docker学习:Docker介绍及其架构介绍
运维·后端·学习·docker·容器·架构
带刺的坐椅9 小时前
Solon Server 启动模式深度解析:从 0.3MB 内核到 10+ Server 插件
java·http·solon·jetty·undertow
掉鱼的猫9 小时前
Solon Server 启动模式深度解析:从 0.3MB 内核到 10+ Server 插件
java·http
SpikeKing9 小时前
LLM - 集成 Hermes Agent 与 WebUI 至同一个 Docker 镜像配置
docker·webui·vibecoding·hermes agent