prune_containers
Remove stopped Docker containers to free up disk space. Optionally filter by time or label to target specific containers.
Instructions
Remove all stopped containers to reclaim disk space.
Only removes containers that are not running — running containers are never affected.
Use list_containers(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 |