Docker: delete all dangling volumes

When you have not removed a data volume container with docker rm -v this data volume container is still there as a dangling volume and remains in to the local disk. You can remove it with this command:

alias ddv='docker volume rm $(docker volume ls -qf dangling=true)'

Originally published at Adrià Galín.