Here’s the command to stop and remove all Docker containers.

<pre lang="bash">
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)