Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

docker remove all containers and images

############ removes all containers #########
docker container rm $(docker container ls -aq)

############ removes all images #############
docker image rm $(docker image ls -q)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #docker #remove #containers #images
ADD COMMENT
Topic
Name
9+8 =