Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Docker commands to remove all containers and images

docker kill $(docker ps -q) to kill all running containers
docker rm $(docker ps -a -q) to delete all stopped containers.
docker rmi $(docker images -q) to delete all images.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.