Docker: How to remove all stopped containers

Run this command in your shell:

docker rm $(docker ps -a -q)