Livid
381.69D
525.24D
V2EX  ›  Docker

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

  •  
  •   Livid ·
    PRO
    · Oct 5, 2018 · 4042 views
    This topic created in 2849 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   ·   2777 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 14:19 · PVG 22:19 · LAX 07:19 · JFK 10:19
    ♥ Do have faith in what you're doing.