Docker is fantastic to have a development environment quickly. However, after some time, you will have your machine full of containers you probably don't use.
The following command list all the containers in your machine
docker ps -aq
If you want to stop all your running containers do the following
docker stop $(docker ps -aq)
If you want to remove all the containers use this