Kill all running containers
docker kill $(docker ps -q)
Remove all stopped containers
docker rm $(docker ps -a -q)
Remove all untagged images
docker rmi -f $(docker images -q -f dangling=true)
Remove all images
docker rmi -f $(docker images -q)