Skip to content

Instantly share code, notes, and snippets.

@jlouros
Created July 31, 2020 10:25
Show Gist options
  • Save jlouros/14a6a7539f4a0c5e9bad6115b494bd12 to your computer and use it in GitHub Desktop.
Save jlouros/14a6a7539f4a0c5e9bad6115b494bd12 to your computer and use it in GitHub Desktop.
delete all Docker image tags by name
$searchString = 'imageName'
docker images --format '{{ .Repository }}:{{ .Tag }}' | ? { $_ -match $searchString } | % { docker rmi $_ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment