prune_images
Remove unused Docker images to reclaim disk space. Use filters to target only dangling images or all unused ones.
Instructions
Remove unused local images to reclaim disk space.
Without filters removes only "dangling" images — untagged layers not referenced by any
tag or container. To remove all images not used by any container (including tagged ones)
pass filters={"dangling": False}. Valid filter keys: dangling (bool as string
"true"/"false"), until (RFC3339 timestamp or duration like "24h"), label
(key or key=value). Use df first to see how much space is reclaimable.
args: filters - Narrow which images to remove; omit to remove dangling images only returns: dict - {"ImagesDeleted": [...], "SpaceReclaimed": }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filters | No |