Skip to content

Instantly share code, notes, and snippets.

@seancheung
Created June 2, 2017 08:27
Show Gist options
  • Save seancheung/d357502ed8d5a7e9b4a011f61d717eaa to your computer and use it in GitHub Desktop.
Save seancheung/d357502ed8d5a7e9b4a011f61d717eaa to your computer and use it in GitHub Desktop.
Docker utils
#/bin/sh
# Remove all stopped containers
docker rm $(docker ps -aq)
# Remove all untagged images
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