(h/t Coderwall)

I often find that I need to stop all my docker containers, then remove them.

Rather than doing that one by one, which is horribly tedious, use these commands:

docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)