When you work with docker, you often need to stop all containers. You can do it by one command:
docker stop $(docker ps -a -q)