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

求推荐国内可用的 Docker 加速镜像

  •  
  •   TossPig · 2022-03-01 08:48:03 +08:00 · 3035 次点击
    这是一个创建于 780 天前的主题,其中的信息可能已经有所发展或是发生改变。

    原来提供国内加速的镜像站纷纷因为流量过大关闭

    四川电信测试可用的就阿里云和 163 163 经常拉取镜像失败 而阿里云镜像大多数时候存在严重滞后好几个月的问题,比如

    dpage/pgadmin4:latest
    jellyfin/jellyfin:latest
    

    jellyfin 因为要添加中文字体支持,自己重新做了一个加量包registry.cn-hangzhou.aliyuncs.com/tossp/jellyfin,又不想每个镜像都自己去重新发包一次

    各位彦祖是怎么解决的?

    11 条回复    2022-03-03 14:16:47 +08:00
    InDom
        1
    InDom  
       2022-03-01 08:54:38 +08:00
    自建网络加速服务?
    coolair
        2
    coolair  
       2022-03-01 09:13:41 +08:00
    proxy ,没有好办法,国内学习 k8s 、docker ,网络是最大障碍。
    paopjian
        3
    paopjian  
       2022-03-01 09:51:23 +08:00
    pendulum
        4
    pendulum  
       2022-03-01 10:02:43 +08:00
    腾讯云有镜像,不过是内网专用的
    privil
        5
    privil  
       2022-03-01 10:12:55 +08:00
    ch2
        6
    ch2  
       2022-03-01 10:45:57 +08:00 via iPhone
    自己搭一个
    jim9606
        7
    jim9606  
       2022-03-01 11:13:48 +08:00
    不要用 latest 标签,docker 将相同的 tag 的镜像视为同一个镜像,这个标签除了是默认标签外并无特殊之处,registry 镜像可能会一直缓存旧的 latest 镜像。
    你应该用不稳定版本号,例如 jellyfin/jellyfin:20220301.1-unstable ,dpage/pgadmin4:2022-02-07-2 。
    或者直接扒项目的 Dockerfile 自己构建镜像,我建议你改官方的 Dockerfile 然后自行构建。
    boringcc
        8
    boringcc  
       2022-03-01 14:18:20 +08:00
    老哥是做搅拌站 erp 的?
    TossPig
        9
    TossPig  
    OP
       2022-03-02 01:22:07 +08:00
    @InDom 好像也只有这个出路

    @coolair 谢谢


    @pendulum 都失效了


    @privil 外网访问也是直接被转到阿里云


    @jim9606 就是有需求拉最新,不想天天手动去换版本


    @boringcc 不是,大学专业相关,转行了纪念一下
    pendulum
        10
    pendulum  
       2022-03-02 11:16:07 +08:00
    @TossPig 我现在还在用,怎么就失效了
    TossPig
        11
    TossPig  
    OP
       2022-03-03 14:16:47 +08:00
    @pendulum 又测试了一遍,确实失效了,也许你配置了多个镜像,或者直接直连了

    Error response from daemon: Get "https://f1361db2.m.daocloud.io/v2/": x509: certificate has expired or is not yet valid: current time 2022-03-03T14:13:35+08:00 is after 2017-06-11T02:21:00Z

    CNAME: daohub-booster-2133630403.cn-north-1.elb.amazonaws.com.cn. (ttl=4)
    A: 54.222.248.173 (ttl=4)
    A: 54.223.39.82 (ttl=4)

    ============================

    Error response from daemon: Get "https://mirror.baidubce.com/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

    CNAME: mirror.baidubce.n.shifen.com. (ttl=1)
    A: 106.39.162.224 (ttl=1)
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3564 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 05:00 · PVG 13:00 · LAX 22:00 · JFK 01:00
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.