Created
January 18, 2016 10:08
-
-
Save Ketouem/fd2177bd4affcde8e3bf to your computer and use it in GitHub Desktop.
Clean docker containers and images
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# All images | |
docker rm `docker ps -aq` | |
docker rmi `docker images -q` | |
# Only <none>/<none> | |
docker rmi `docker images | grep '^<none>' | awk '{print $3}'` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment