image_prune
Remove unused local Docker images to reclaim disk space. Filter by dangling, until, or label to target specific images.
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 system_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 |