Answers for "remove all stopped containers"

16

docker remove all containers

docker rm $(docker ps -a -q)
Posted by: Guest on February-24-2020
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
4

how to remove a docker container

docker container rm [container id]
Posted by: Guest on May-23-2020
0

remove all stopped containers

$ docker rm $(docker ps --filter status=exited -q)
$ docker ps --filter status=exited -q | xargs docker rm
Posted by: Guest on September-01-2021

Code answers related to "remove all stopped containers"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language