Last active
June 23, 2016 18:17
-
-
Save maietta/9117f533e2a79d1f07deb63fc15d2c3b to your computer and use it in GitHub Desktop.
Removing dangling container images
This file contains hidden or 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
To delete all your exited containers. | |
% docker ps -a -q --filter "status=exited" | xargs docker rm | |
And to then delete all your untagged images. | |
% docker rmi `docker images -q --filter "dangling=true"` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment