Removing intermediate images left over from multiple builds
docker rmi $(docker images -a --filter=dangling=true -q)
Removing stopped containers
docker rm $(docker ps --filter=status=exited --filter=status=created -q)
Removing all containers and images
docker rm -f $(docker ps -aq)
docker rmi $(docker images -aq)