naohion
V2EX  ›  Docker

迁移 docker 宿主机,直接打包 /var/lib/docker 复制过去可行吗?

  •  
  •   naohion · Aug 13, 2020 · 2771 views
    This topic created in 2274 days ago, the information mentioned may be changed or developed.

    24 个容器,一个个 export 太麻烦还容易出错。

    514146235
    514146235
    Aug 13, 2020
    1
    images 应该是可以迁移成功的,但是 container 不一定能起的来,估计要重新创建。
    whileFalse
    whileFalse
    Aug 13, 2020❤️5
    2
    容器、镜像不是资产,Dockerfile 、docker-compose 、Volumes 才是资产。
    zzm88104
    zzm88104
    Oct 18, 2022
    3
    @whileFalse #2 很有道理!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1390 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 59ms · UTC 18:51 · PVG 02:51 · LAX 10:51 · JFK 13:51
    ♥ Do have faith in what you're doing.