Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

docker remove exited containers

(docker ps -a |findstr Exited) | foreach-object {docker rm $_.split(" ")[-1]}
Source by docker-curriculum.com #
 
PREVIOUS NEXT
Tagged: #docker #remove #exited #containers
ADD COMMENT
Topic
Name
4+4 =