Skip to content

Instantly share code, notes, and snippets.

@anubhavsinha
Created August 17, 2016 17:38
Show Gist options
  • Save anubhavsinha/00f66c1b1c2b467aca193b10c85148fb to your computer and use it in GitHub Desktop.
Save anubhavsinha/00f66c1b1c2b467aca193b10c85148fb to your computer and use it in GitHub Desktop.
Some utility command to clean up docker dirt
# cleans all images
docker images | awk '{print $3}' | xargs docker rmi
# cleans all stopped containers
docker rm $(docker ps -q -f status=exited)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment