Livid
291.54D
558.78D
V2EX  ›  Docker

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

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