Skip to content

Instantly share code, notes, and snippets.

@joostmeijles
Last active October 8, 2019 09:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joostmeijles/965298c940a6e0c754387799b13ad2a5 to your computer and use it in GitHub Desktop.
Save joostmeijles/965298c940a6e0c754387799b13ad2a5 to your computer and use it in GitHub Desktop.
Remove Docker images

To remove all Docker images that match a certain repo and tag using Bash:

$ docker images --filter "reference=*/sitecore*:9.1.0-20190717" -q --no-trunc | xargs docker rmi

Using Powershell:

PS> docker images --filter "reference=*/sitecore*:9.1.0-20190717" -q --no-trunc | %{docker rmi $_}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment