/ til

Docker: Remove all images and containers

To delete all the containers we have created so far:

docker rm $(docker ps -a -q)

To delete all the images in docker:

docker rmi $(docker images -q)

NB: Deleting docker containers and images is not reversible. Make sure you know what you are upto.

Ref: Docker Issue

Manu S Ajith

Manu S Ajith

Tech Entrepreneur, dating Elixir, in long-term ❤️ w/ Ruby, had multiple one night stands w/ Go. Into functional paradigms DDD/CQRS/EventSourcing architecture these days. @manusajith on the interwebs

Read More