Created
November 15, 2023 10:42
-
-
Save detj/1da1c9ac0d04b6e7c94dc48276be59c7 to your computer and use it in GitHub Desktop.
delete docker images based on a regex pattern
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# syntax | |
docker rmi $(docker images -a | rg <pattern> | awk '{print $3}' | |
# example | |
docker rmi $(docker images -a | rg supabase | awk '{print $3}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment