Skip to content

Instantly share code, notes, and snippets.

@qerub
Last active November 6, 2016 19:17
Show Gist options
  • Save qerub/fb0a38bd00e5bcd5e1d5 to your computer and use it in GitHub Desktop.
Save qerub/fb0a38bd00e5bcd5e1d5 to your computer and use it in GitHub Desktop.
Useful Docker commands

How to remove dangling/untagged images

docker images -q -f dangling=true | xargs docker rmi

How to remove stopped/exited containers

docker ps -q -f status=exited | xargs docker rm

TBC!

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