Skip to content

Instantly share code, notes, and snippets.

@salaros
Forked from daredude/docker-clear.bat
Last active July 5, 2023 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save salaros/1b090b73ac99887109b55153105db0e4 to your computer and use it in GitHub Desktop.
Save salaros/1b090b73ac99887109b55153105db0e4 to your computer and use it in GitHub Desktop.
Remove Docker containers and images
docker ps -aq | foreach {docker stop $_} && docker ps -aq | foreach {docker rm $_}
docker image prune --filter="dangling=true"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment