Do you use docker for your local development environments? Do you use it for multiple projects. You may have seen an error like this:
Cannot start service db: drive failed programming external connectivity on endpoint…
This message appears because you have an existing docker container running that is using the port your new container is attempting to use (in my case, this is almost always port 3306 for MySQL containers).
But there is a really easy way to stop all running containers, even if you don’t know which folder you started it from:
[Read more…] about Quickly Stop All Docker Containers
docker stop $(docker ps -aq)