Answers for "how to remove all images and containers in docker"

25

docker delete all images

docker rmi -f $(docker images -a -q)
Posted by: Guest on April-25-2020
0

docker remove all containers and images

docker container stop $(docker container ls -aq)
Posted by: Guest on September-04-2020

Code answers related to "how to remove all images and containers in docker"

Browse Popular Code Answers by Language