Answers for "docker remove container when stopped"

7

remove stopped containers

$ docker rm $(docker ps -a -q)
Posted by: Guest on May-27-2020
0

docker remove all stopped

$ docker rm $(docker ps --filter status=exited -q)
Posted by: Guest on June-22-2021

Code answers related to "docker remove container when stopped"

Browse Popular Code Answers by Language