Skip to content

Instantly share code, notes, and snippets.

@detj
Created November 15, 2023 10:42
Show Gist options
  • Save detj/1da1c9ac0d04b6e7c94dc48276be59c7 to your computer and use it in GitHub Desktop.
Save detj/1da1c9ac0d04b6e7c94dc48276be59c7 to your computer and use it in GitHub Desktop.
delete docker images based on a regex pattern
# 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