Skip to content

Instantly share code, notes, and snippets.

@maietta
Last active June 23, 2016 18:17
Show Gist options
  • Save maietta/9117f533e2a79d1f07deb63fc15d2c3b to your computer and use it in GitHub Desktop.
Save maietta/9117f533e2a79d1f07deb63fc15d2c3b to your computer and use it in GitHub Desktop.
Removing dangling container images
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