This is shamelessly stolen from The Humble Developer.
List All Containers
[shell]
docker ps -a
[/shell]
Stop All Running Containers
[shell]
docker stop $(docker ps -aq)
[/shell]
Remove All Containers
[shell]
docker rm $(docker ps -aq)
[/shell]
Remove All Images
[shell]
docker rmi $(docker images -q)
[/shell]