This command comes from ( https://coderwall.com/p/ewk0mq ), but both the outer and inner docker
calls must be as root.
This will stop all docker containers on the machine -- use with caution!
sudo bash
docker stop -t 0 $(docker ps -a -q)
docker rm $(docker ps -a -q)
exit