Skip to content

Instantly share code, notes, and snippets.

@rrichards
Forked from mgoodness/docker-rmi.sh
Created May 28, 2019 15:44
Show Gist options
  • Save rrichards/5d6c90f289e90fb32d08837660729d3d to your computer and use it in GitHub Desktop.
Save rrichards/5d6c90f289e90fb32d08837660729d3d to your computer and use it in GitHub Desktop.
docker-rmi() {
docker images \
| fzf --header-lines=1 --multi \
| awk '{print $3}' \
| xargs docker rmi ${1+"$@"}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment