x97bgt
V2EX  ›  Docker

在 docker 里,如何给正在运行的容器增加 volume?

  •  
  •   x97bgt · May 27, 2019 · 5498 views
    This topic created in 2740 days ago, the information mentioned may be changed or developed.

    docker run 运行容器后,怎么不停止容器,给他们增加 volume ?

    6 replies  •  2019-05-27 16:05:40 +08:00
    gjquoiai
    gjquoiai
    May 27, 2019
    1
    docker update 可以修改运行时的容器,可以看看能不能修改 volume
    gjquoiai
    gjquoiai
    May 27, 2019
    2
    @gjquoiai #1 不能的话就没别的好办法啦_(:з)∠)_
    AlloVince
    AlloVince
    May 27, 2019
    3
    你需要的是一个类似 k8s 这样的编排工具进行 RollingUpdate
    x97bgt
    x97bgt
    OP
    May 27, 2019
    4
    @gjquoiai docker update 似乎不行,没搜到相关教程
    x97bgt
    x97bgt
    OP
    May 27, 2019
    5
    @AlloVince k8s 能做到么?现在工作中只是简单地用到容器,,还没用到 k8s
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4503 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 01:19 · PVG 09:19 · LAX 17:19 · JFK 20:19
    ♥ Do have faith in what you're doing.