container_prune
Remove stopped Docker containers to reclaim disk space without affecting running ones. Optionally filter by age or label to narrow which stopped containers get pruned.
Instructions
Remove all stopped containers to reclaim disk space.
Only removes containers that are not running - running containers are never affected.
Use container_list(all=True) to preview what would be removed before calling this.
Valid filter keys: until (RFC3339 timestamp or duration like "24h" - removes containers
stopped before that point), label (key or key=value). For a broader cleanup of
containers plus unused images, networks, and volumes see the prune_managed prompt.
Args: filters: Narrow which stopped containers to remove; omit to remove all stopped
Returns: dict: {"ContainersDeleted": [...], "SpaceReclaimed": }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filters | No |