To stop all running containers, enter the docker container stop command followed by the containers IDs:
docker container stop $(docker container ls -aq)
or stop and remove all containers using this command :
docker stop $(docker ps -a -q)
To stop all running containers, enter the docker container stop command followed by the containers IDs:
docker container stop $(docker container ls -aq)
or stop and remove all containers using this command :
docker stop $(docker ps -a -q)