Skip to content

Instantly share code, notes, and snippets.

@sharepointoscar
Last active June 12, 2017 18:30
Show Gist options
  • Save sharepointoscar/25eec81e62c44d6590a0e4e9aceeb498 to your computer and use it in GitHub Desktop.
Save sharepointoscar/25eec81e62c44d6590a0e4e9aceeb498 to your computer and use it in GitHub Desktop.
Useful Docker Commands to clean up your environment.
# remove images based on a pattern
docker images | grep "pattern" | awk '{print $1}' | xargs docker rm
# remove all images
docker rmi $(docker images -a -q)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment