V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
boycem
V2EX  ›  程序员

windows 下,如何不装 docker-desktop 下,导出 remote-mirror 镜像 tar

  •  
  •   boycem · Dec 6, 2023 · 1614 views
    This topic created in 877 days ago, the information mentioned may be changed or developed.

    windows 下,如何不装 docker-desktop 下,导出镜像 tar ,试过 skopeo-1.9.3 ,不太好使

    yinmin
        1
    yinmin  
       Dec 6, 2023 via iPhone
    portainer
    Evrins
        2
    Evrins  
       Dec 6, 2023
    https://github.com/containers/skopeo

    https://github.com/containers/skopeo/blob/main/docs/skopeo-copy.1.md

    To create an archive consumable by docker load (but note that using a registry is almost always more efficient):
    `skopeo copy docker://busybox:latest docker-archive:archive-file.tar:busybox:latest`
    zuotun
        3
    zuotun  
       Dec 7, 2023
    答案是装 docker cli(
    我的方案是装在 WSL2 Debian 里, 然后不用 Debian 就会一起被杀掉....
    如果真的没装 docker, 那又要从哪里导出镜像呢?
    boycem
        4
    boycem  
    OP
       Dec 7, 2023
    @yinmin 我试试
    boycem
        5
    boycem  
    OP
       Dec 7, 2023
    @Evrins 这个我也研究过,导出的不完整。我的使用场景是这样的,想导出 tar ,然后再 load 到另外一个内外环境
    boycem
        6
    boycem  
    OP
       Dec 7, 2023
    @zuotun 工作用的机子开发还行,开了稍微多点的应用,很卡,装 wsl 就更卡了,家里用电脑是装了 wsl 的
    zuotun
        7
    zuotun  
       Dec 7, 2023
    @boycem 工作的机子还能卡? 这完全是内存不足吧.
    docker 导出倒是很简单, 直接 save 就好了.
    boycem
        8
    boycem  
    OP
       Dec 7, 2023
    @zuotun 是的,4c8g
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   947 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 18:40 · PVG 02:40 · LAX 11:40 · JFK 14:40
    ♥ Do have faith in what you're doing.