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