Skip to content

Instantly share code, notes, and snippets.

@heiswayi
Last active September 1, 2020 08:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heiswayi/612cdc23774f044e31125812fbdb13dc to your computer and use it in GitHub Desktop.
Save heiswayi/612cdc23774f044e31125812fbdb13dc to your computer and use it in GitHub Desktop.

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