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 a flag I can run to delete all the local docker images & containers?
Something like docker rmi --all --force
--all flag does not exist but I am looking for something with similar idea.
docker images purge
--> will remove all your docker images – muthukumar selvarajdocker image ls -q | xargs -I {} docker image rm -f {}
– arkadytdocker image prune
(image is singular and it's prune instead of purge). – Andrés Mejía