These are the commands to use when you want to stop all your docker containers.
On MacOS/Linux:
docker stop $(docker ps -a -q)
For Windows:
FOR /f "tokens=*" %i IN ('docker ps -a -q') DO docker rm %i
Sources:
These are the commands to use when you want to stop all your docker containers.
On MacOS/Linux:
docker stop $(docker ps -a -q)
For Windows:
FOR /f "tokens=*" %i IN ('docker ps -a -q') DO docker rm %i
Sources: