ubuntun 下 docker 拉取镜像失败,配置了镜像源,但是无效

39 天前
goashore  goashore

已在 daemon.json 配置了多个镜像源: DaoCloud 镜像站: https://docker.m.daocloud.io 腾讯云公共镜像库: https://mirror.ccs.tencentyun.com 华为云镜像服务: https://developer.huaweicloud.com/dm/mirrors 1Panel 镜像源: https://docker.1panel.live Unsee 镜像源: https://docker-0.unsee.tech 1ms.run 镜像源: https://docker.1ms.run Azure 中国镜像: http://mirror.azure.cn 中国区官方镜像: https://registry.docker-cn.com 清华源: https://docker.mirrors.ustc.edu.cn 阿里源: https://cr.console.aliyun.com 腾讯源: https://mirror.ccs.tencentyun.com 网易源: http://hub-mirror.c.163.com https://mirror.iscas.ac.cn/ (部分镜像已失效) 修改了 DNS 也不行,拉取 hello-world 、openweb-ui 时等其他项目时还是会走到 https://registry-1.docker.io/v2 这个请求,但是这个服务器上无法打开,一直无法拉取镜像。 请问是什么问题,如何解决

1903 次点击
所在节点   Ubuntu  Ubuntu
23 条回复
ywlvs
ywlvs
39 天前
看了您的标题及排版,感觉无效是正常的。
EarthChild
EarthChild
39 天前
离线安装 docker 吧。搜索:银河麒麟 sp3 离线安装 docker 教程
EarthChild
EarthChild
39 天前
噢。是镜像源……你 github 多搜搜就能找到了 国内的全部 gg
psllll
psllll
39 天前
直接挂代理多好,为什么要用镜像源
/etc/systemd/system/docker.service.d/http-proxy.conf

[Service]
Environment="HTTP_PROXY=http://127.0.0.1:7891"
Environment="HTTPS_PROXY=http://127.0.0.1:7891"
goashore
goashore
39 天前
@ywlvs 这个标题有什么问题吗?排版输入时已经换行换段的,实际显示成这样我也没想到
goashore
goashore
39 天前
@psllll 单位性质问题,服务器不能 FQ
psllll
psllll
39 天前
@goashore 不需要你全局开 tun 啥的,直接跑一个 socks5 服务就行,反正你都敢用镜像源了也不怕跑个翻墙软件吧
hnliuzesen
hnliuzesen
39 天前
cyhulk
cyhulk
39 天前
@goashore #6 自己在家翻墙,硬盘 copy 镜像
leeda
leeda
39 天前
请配置以下镜像列表: https://github.com/dongyubin/DockerHub
jasonyang9
jasonyang9
39 天前
自建 registry 。。我现在遇到有用的镜像后都打 tag 并 push 到自建 registry 。。。。
kekylin
kekylin
39 天前
可以直接用我项目的脚本,一键配置 docker 镜像源,感兴趣可以看看。
https://github.com/kekylin/Debian-HomeNAS
XDiLa
XDiLa
39 天前
@ywlvs +1
halobugTurbo
halobugTurbo
39 天前
既然不能 proxy ( 4 楼老哥一定能解决问题),那就用 11 楼老哥说的。
renmu
renmu
39 天前
因为你的镜像已经都失效了
ywlvs
ywlvs
39 天前
@goashore 就是看到标题 Ubuntu 写错 + 内容毫无排版可言,起码换个行吧。
catamaran
catamaran
39 天前
你是不是没有重启服务,以及 daemon reload
Manley
Manley
38 天前
dockerpull.cn 某个好大哥维护的,域名在国内已经备案

给单位用的镜像源,让楼主自建 CF 代理不大合适吧
mingtdlb
mingtdlb
38 天前
@ywlvs 顺便加一句。有个叫预览的按钮,发出来之后短时间还能编辑...
sthwrong
38 天前
公司内部维护个 dockerhub 啊,用得上的镜像写个 dockerfile 自定义了扔内部 hub 上,服务器去内部 hub 拉也行,save 成镜像包推服务器上也行。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1112655

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX