Answers for "docker remove all stopped containers"

7

remove stopped containers

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

docker remove all containers

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

docker remove not running containers

docker container rm $(docker container ls –aq)
Posted by: Guest on October-30-2020
0

docker remove all stopped

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

docker force remove container

docker rm -f [containerid]
Posted by: Guest on May-27-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 "docker remove all stopped containers"

Browse Popular Code Answers by Language