Golden Codes - armanexplorer planet

Practical code snippets for Django, Python, Bash, Git and All!

View on GitHub

list dangling volumes (A dangling volume is a volume that is not currently used by any container.)

docker volume ls -f dangling=true

create a named volume from an anonymous one

prune

Docs

Remove all unused local volumes. Unused local volumes are those which are not referenced by any containers. By default, it only removes anonymous volumes.

-a: Remove all unused volumes, not just anonymous ones