sajad torkamani
docker ps -aq | xargs docker stop

docker ps -aq will give you the list of all the container IDs. Once you have the container IDs, you pass it to docker stop which will stop them.

Tagged: Docker