V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
goashore
V2EX  ›  Ubuntu

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

  •  
  •   goashore · 2 天前 · 1161 次点击

    已在 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 这个请求,但是这个服务器上无法打开,一直无法拉取镜像。 请问是什么问题,如何解决

    23 条回复    2025-02-20 14:31:54 +08:00
    ywlvs
        1
    ywlvs  
       2 天前   ❤️ 5
    看了您的标题及排版,感觉无效是正常的。
    EarthChild
        2
    EarthChild  
       2 天前
    离线安装 docker 吧。搜索:银河麒麟 sp3 离线安装 docker 教程
    EarthChild
        3
    EarthChild  
       2 天前
    噢。是镜像源……你 github 多搜搜就能找到了 国内的全部 gg
    psllll
        4
    psllll  
       2 天前   ❤️ 1
    直接挂代理多好,为什么要用镜像源
    /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
        5
    goashore  
    OP
       2 天前
    @ywlvs 这个标题有什么问题吗?排版输入时已经换行换段的,实际显示成这样我也没想到
    goashore
        6
    goashore  
    OP
       2 天前
    @psllll 单位性质问题,服务器不能 FQ
    psllll
        7
    psllll  
       2 天前   ❤️ 1
    @goashore 不需要你全局开 tun 啥的,直接跑一个 socks5 服务就行,反正你都敢用镜像源了也不怕跑个翻墙软件吧
    hnliuzesen
        8
    hnliuzesen  
       2 天前   ❤️ 1
    cyhulk
        9
    cyhulk  
       2 天前
    @goashore #6 自己在家翻墙,硬盘 copy 镜像
    leeda
        10
    leeda  
       2 天前   ❤️ 1
    请配置以下镜像列表: https://github.com/dongyubin/DockerHub
    jasonyang9
        11
    jasonyang9  
       2 天前 via Android
    自建 registry 。。我现在遇到有用的镜像后都打 tag 并 push 到自建 registry 。。。。
    kekylin
        12
    kekylin  
       2 天前   ❤️ 1
    可以直接用我项目的脚本,一键配置 docker 镜像源,感兴趣可以看看。
    https://github.com/kekylin/Debian-HomeNAS
    XDiLa
        13
    XDiLa  
       2 天前
    @ywlvs +1
    halobugTurbo
        14
    halobugTurbo  
       2 天前
    既然不能 proxy ( 4 楼老哥一定能解决问题),那就用 11 楼老哥说的。
    renmu
        15
    renmu  
       2 天前 via Android
    因为你的镜像已经都失效了
    ywlvs
        16
    ywlvs  
       2 天前
    @goashore 就是看到标题 Ubuntu 写错 + 内容毫无排版可言,起码换个行吧。
    catamaran
        17
    catamaran  
       2 天前
    你是不是没有重启服务,以及 daemon reload
    Manley
        18
    Manley  
       1 天前
    dockerpull.cn 某个好大哥维护的,域名在国内已经备案

    给单位用的镜像源,让楼主自建 CF 代理不大合适吧
    mingtdlb
        19
    mingtdlb  
       1 天前
    @ywlvs 顺便加一句。有个叫预览的按钮,发出来之后短时间还能编辑...
    sthwrong
        20
    sthwrong  
       1 天前
    公司内部维护个 dockerhub 啊,用得上的镜像写个 dockerfile 自定义了扔内部 hub 上,服务器去内部 hub 拉也行,save 成镜像包推服务器上也行。
    fionasit007
        21
    fionasit007  
       1 天前
    我之前用群晖自己 cf 代理的,不过在面板能浏览搜索,但是安装不了,登进命令行就能安转,你要是直接命令行应该也可以,网上教程应该挺多的,docker cf 代理
    goashore
        22
    goashore  
    OP
       1 天前
    @ywlvs #16 我是来寻找问题的解决方式,而不是纠这个排版问题一直听你嘲讽听你 BB ,没有建设性意见就略过。再说编辑的时候没有看到所见即所得
    goashore
        23
    goashore  
    OP
       1 天前
    谢谢大家,尝试了多个后,已经解决了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   927 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 21:02 · PVG 05:02 · LAX 13:02 · JFK 16:02
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.