Last active
June 29, 2017 05:22
-
-
Save kiyoaki/a17982a8db72ac58095f39cbde97260b to your computer and use it in GitHub Desktop.
Windows docker commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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