Livid
277.21D
571.84D
V2EX  ›  Docker

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

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