prune_images
Remove dangling or unused container images to reclaim disk space. Use dry-run to preview images and reclaimable bytes before deletion.
Instructions
[WRITE][risk=high] Prune images (dangling by default). No undo.
dry_run LISTS the images that would be removed and the reclaimable bytes before doing anything.
Args: dangling_only: True (default) prunes only untagged images; False also prunes images unused by any container. dry_run: If True, list what would be removed + reclaimable bytes. target: Target name from config; omit for the default.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "prune_images"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| dry_run | No | ||
| dangling_only | No |