V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Yourshell
V2EX  ›  Docker

Docker Hub 的冷门 image 未被国内 registry mirror 缓存导致无法加速问题

  •  
  •   Yourshell · Jun 5, 2020 · 2432 views
    This topic created in 2154 days ago, the information mentioned may be changed or developed.

    网络是移动 100M 。

    要从 Docker Hub pull 一个约 4G 的 image (开发环境,基本每周不定期更新),设置了国内的 registry mirror (中科大、阿里和网易等)。但是这个 image 应该是太小众了导致国内的 registry mirror 都没有缓存,首次 pull 相当于是我通过 registry mirror 这个代理直接向 Docker Hub pull,速度基本在 10M 以下,经过一次 pull 被缓存后确实能加速了,但是这也太坑了吧🤣。

    各位是怎么应对这种情况的?

    • 上代理?只有一条 30M 的小水管,速度不太稳定。
    • 直连 Docker Hub ?根本连不上。
    3 replies    2020-06-05 17:44:44 +08:00
    arischow
        1
    arischow  
       Jun 5, 2020   ❤️ 1
    用 Dockerfile 在你本地自己构建?
    Trim21
        2
    Trim21  
       Jun 5, 2020   ❤️ 2
    写个 cron 定期 pull 不就好了...
    yangchuansheng33
        3
    yangchuansheng33  
       Jun 5, 2020   ❤️ 1
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1063 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 22:49 · PVG 06:49 · LAX 15:49 · JFK 18:49
    ♥ Do have faith in what you're doing.