Skip to content

Instantly share code, notes, and snippets.

@MarkTiedemann
Last active August 23, 2017 02:51
Show Gist options
  • Save MarkTiedemann/9d7b23842014c56549055494b2bcce0e to your computer and use it in GitHub Desktop.
Save MarkTiedemann/9d7b23842014c56549055494b2bcce0e to your computer and use it in GitHub Desktop.
Remove all docker containers and images in Powershell
(docker ps -q -a).split('\n') | % { docker rm $_ }
(docker images -q -a).split('\n') | % { docker rmi $_ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment