Note: If you get a "no space left on device error", you may have stopped containers taking up space.
Show all containers, running and stopped
docker ps -a
One liner to stop / remove all of Docker containers:
docker stop
Remove images:
images: docker rmi $(docker images -q)
Remove volumes and containers:
docker rm -v $(docker ps -a -q)
To only stop exited containers and delete only non-tagged images.:
docker ps --filter 'status=Exited' -a | xargs docker stop docker images --filter "dangling=true" -q | xargs docker rmi
Remove all containers that aren't currently running:
docker rm $(docker ps -a -q -f "status=exited*")