Here’s the command to stop and remove all Docker containers. docker stop $(docker ps -a -q) docker rm $(docker ps -a -q)