stop all the running containers code example Example: docker stop all containers docker stop $(docker ps -a -q)