jelipo
V2EX  ›  Docker

加一个方式以缓解本地拉不了镜像的问题

  •  
  •   jelipo · Jul 2, 2024 · 1685 views
    This topic created in 688 days ago, the information mentioned may be changed or developed.

    看到很多网友自发提供了免费的镜像代理,体验都很好。

    想到之前写过一个镜像打包的插件,最近想起来可以一定程度上环节最近因特殊原因拉不了镜像的问题。

    https://github.com/jelipo/ocipack-rs

    容器引擎一般设置代理都需要重启,且来回设置麻烦。

    用 ocipack 使用代理 下载镜像到本地,然后用容器引擎 load 进去。

    1719886975531.png

    论优雅肯定比不上镜像代理,但找到一个长期稳定的还是比较难,有需求的小伙伴自取。

    PS

    体验过后不想用的记得 clean 一下清除缓存

    ocipack clean -a
    
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5237 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 05:48 · PVG 13:48 · LAX 22:48 · JFK 01:48
    ♥ Do have faith in what you're doing.