volume_prune
Remove Docker volumes not referenced by any container to reclaim disk space. Apply label or all filters to target specific unused volumes, including anonymous ones.
Instructions
Remove volumes not referenced by any container, running or stopped.
A volume used by even one stopped container is not "unused" and survives the prune —
remove the container first (or use container_prune, then this) to reclaim its
volumes. Valid filter keys: label (key or key=value), all ("true" as a string —
without it only anonymous volumes are eligible, matching docker volume prune's
default). Use volume_list first to see what currently exists.
args: filters - Narrow which unused volumes to remove; omit to remove all anonymous ones returns: dict - {"VolumesDeleted": [...], "SpaceReclaimed": }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filters | No |