get a list of runing containers docker and stop them code example Example: docker stop all containers docker stop $(docker ps -a -q)