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

相关推荐
努力进修9 小时前
Docker+cpolar 实战:打造灵活可控的远程办公系统
运维·docker·容器
江华森11 小时前
Web 开发基础:HTTP 与 REST
前端·网络协议·http
jieyucx12 小时前
Docker 入门第一阶段:建立正确认知与初体验
运维·docker·容器
jieyucx14 小时前
Docker 入门第二阶段:掌握日常命令
运维·docker·容器
有毒的教程15 小时前
Kubernetes进阶实战教程(生产落地完整版)
云原生·容器·kubernetes
鱼听禅16 小时前
Ubuntu学习笔记-安装docker容器
学习·ubuntu·docker
不会C语言的男孩17 小时前
Docker 在嵌入式设备中的常用玩法
运维·docker·容器
白日焰火117 小时前
Redis 哨兵搭建+ACL权限控制
linux·docker·kubernetes
weixin_3077791318 小时前
Linux下Docker Compose里运行的MySQL数据库故障诊断Shell脚本
linux·运维·mysql·docker·自动化
hj28625120 小时前
Docker‑Compose 笔记
笔记·docker·容器