Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

remove all stopped containers

$ docker rm $(docker ps --filter status=exited -q)
$ docker ps --filter status=exited -q | xargs docker rm
Source by docs.docker.com #
 
PREVIOUS NEXT
Tagged: #remove #stopped #containers
ADD COMMENT
Topic
Name
5+9 =