Skip to content

Instantly share code, notes, and snippets.

@avoinea
Last active January 14, 2016 13:04
Show Gist options
  • Save avoinea/2ba1f023f203794e9d96 to your computer and use it in GitHub Desktop.
Save avoinea/2ba1f023f203794e9d96 to your computer and use it in GitHub Desktop.
Docker utils
# Remove all non-data docker containers
docker rm -v $(docker ps -a | grep -v "data" | gawk '{print $1}';)
# Remove <none> docker images
docker rmi $(docker images | grep none | gawk '{print $3}';)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment