Skip to content

Instantly share code, notes, and snippets.

@heiswayi

heiswayi/docker.md

Last active Sep 1, 2020
Embed
What would you like to do?

List all containers (only IDs)

docker ps -aq

Stop all running containers

docker stop $(docker ps -aq)

Remove all containers

docker rm $(docker ps -aq)

Remove all images

docker rmi $(docker images -q)
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.