x97bgt
V2EX  ›  Docker

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

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

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

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