How can I delete all local Docker images?
@lebyy▲ 0 net votes
Problem: I recently started using Docker and never realized that I should use docker-compose down instead of ctrl-c or docker-compose stop to get rid of my experiments. I now have a large number of unneeded docker images locally. Is there an option to delete all the… Fix (from the top answer): Unix To delete all containers including its volumes use, docker rm -vf $(docker ps -aq) To delete all the images, docker rmi -f $(docker images -aq) Remember, you should remove all the containers before removing all the images from which those containers were created. Windows - Powershell docker images -a -q | % {…