Livid
378.3D
538.32D
V2EX  ›  Docker

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

  •  
  •   Livid ·
    PRO
    · Oct 5, 2018 · 4019 views
    This topic created in 2838 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   ·   5388 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 07:28 · PVG 15:28 · LAX 00:28 · JFK 03:28
    ♥ Do have faith in what you're doing.