Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

docker close all containers

 stop all containers:
docker kill $(docker ps -q)
 remove all containers:
docker rm $(docker ps -a -q)
 remove all docker images:
docker rmi $(docker images -q)
Source by gist.github.com #
 
PREVIOUS NEXT
Tagged: #docker #close #containers
ADD COMMENT
Topic
Name
5+9 =