Skip to content

Instantly share code, notes, and snippets.

@aiwas
Created September 7, 2014 12:45
Show Gist options
  • Save aiwas/1eab0b5b239f9e2d7dd2 to your computer and use it in GitHub Desktop.
Save aiwas/1eab0b5b239f9e2d7dd2 to your computer and use it in GitHub Desktop.
Remove non-tagged images ( mainly for images failed to build )
#!/bin/bash
# Remove non-tagged images
id=$( docker images | awk '/^<none>/ { print $3 }' | tr '\n' ' ' )
docker rmi ${id}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment