How can I stop all docker containers running on Windows?
docker stop
is for 1 container only.
Any command/script to make it stop all containers?
How can I stop all docker containers running on Windows?
docker stop
is for 1 container only.
Any command/script to make it stop all containers?
You could create a batch (.bat) file with these commands in it:
If you want to run this command directly in the console, replace
%%i
with%i
, like:In Git Bash or Bash for Windows you could run:
For those who are interested this can be accomplished in Powershell using