Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Windows docker commands
# stop all containers
FOR /f "tokens=*" %i IN ('docker ps -a -q') DO docker stop %i
# delete all containers
FOR /f "tokens=*" %i IN ('docker ps -a -q') DO docker rm %i
# delete all images
FOR /f "tokens=*" %i IN ('docker images -a -q') DO docker rmi -f %i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment