Skip to content

Instantly share code, notes, and snippets.

@dotnetdude
Created December 12, 2018 14:58
Show Gist options
  • Select an option

  • Save dotnetdude/0228105950ec7004ad4c140c1ebda562 to your computer and use it in GitHub Desktop.

Select an option

Save dotnetdude/0228105950ec7004ad4c140c1ebda562 to your computer and use it in GitHub Desktop.
docker delete all untagged local images windows
//To delete all stopped containers:
docker ps -a -q | % { docker rm $_ }
//To delete all untagged local images
docker images | ConvertFrom-String | where {$_.P2 -eq "<none>"} | % { docker rmi $_.P3 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment