docker stop all containers that start with code example Example: docker stop all containers docker stop $(docker ps -a -q)