Skip to content

Instantly share code, notes, and snippets.

@tristanlins
Last active March 11, 2018 07:27
Show Gist options
  • Save tristanlins/e2fc65617e71adfd28b8 to your computer and use it in GitHub Desktop.
Save tristanlins/e2fc65617e71adfd28b8 to your computer and use it in GitHub Desktop.
#!/bin/bash
docker image ls | awk '$1 == "<none>" || $2 == "<none>" { print $3; }' | xargs docker image rm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment