Skip to content

Instantly share code, notes, and snippets.

@jmchilton
Created January 29, 2015 18:40
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 jmchilton/89db5844d72ae8326499 to your computer and use it in GitHub Desktop.
Save jmchilton/89db5844d72ae8326499 to your computer and use it in GitHub Desktop.
Cleaning up Docker...
# Remove stopped images...
sudo bash -c 'docker rm $(docker ps -a -q)'
sudo bash -c 'docker images -q --filter "dangling=true" | xargs docker rmi'
@jmchilton
Copy link
Author

docker kill docker ps | cut -f1 -d' ' | tail -n +2

@jmchilton
Copy link
Author

docker network ls -q --filter "DRIVER=bridge" | xargs docker network rm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment