Livid
286.33D
539.05D
V2EX  ›  Docker

docker stack rm 时不能删掉所有的 containers 是一个已知问题么?

  •  
  •   Livid ·
    PRO
    · Oct 5, 2018 · 3954 views
    This topic created in 2801 days ago, the information mentioned may be changed or developed.

    https://github.com/moby/moby/issues/32620

    貌似在目前的最新版本 18.06.1-ce 里还是会出现这个问题。

    目前我的做法是用这样的一行指令来清理:

    docker rm $(docker ps -a -q)
    

    貌似这个问题和 docker-compose.yml 里设定的 replicas 有关,在 docker stack rm 的时候,只有主服务被删除了,而 replica 却没有。

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2641 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 11:51 · PVG 19:51 · LAX 04:51 · JFK 07:51
    ♥ Do have faith in what you're doing.