how to kill all docker containers force on mac code example Example: stop all container in docker docker stop $(docker ps -a -q) docker rm $(docker ps -a -q)