Skip to content

Instantly share code, notes, and snippets.

@dustinmoris
Last active September 1, 2016 10:09
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 dustinmoris/727329466e5b8e224c55737d35434a2b to your computer and use it in GitHub Desktop.
Save dustinmoris/727329466e5b8e224c55737d35434a2b to your computer and use it in GitHub Desktop.
Useful Docker commands
# Remove all exited Docker containers with one line
docker ps -a | grep Exit | cut -d ' ' -f 1 | xargs docker rm
# Remove all images
docker images -q | xargs docker rmi --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment