Skip to content

Instantly share code, notes, and snippets.

@arvind-india
Forked from anubhavsinha/docker_utility.sh
Created August 18, 2017 14:05
Show Gist options
  • Save arvind-india/240c497079c7d89f5d3733b37f5cbfff to your computer and use it in GitHub Desktop.
Save arvind-india/240c497079c7d89f5d3733b37f5cbfff 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