network_prune
Remove Docker networks that have no active containers. Supports filtering by creation time or labels to target specific unused networks.
Instructions
Remove networks that have no active container endpoints.
Built-in networks (bridge, host, none) are never removed. Only networks with zero
connected containers are eligible. Valid filter keys: until (RFC3339 timestamp or
duration — removes networks created before that point), label (key or key=value).
args: filters - Narrow which networks to remove; omit to remove all unused custom networks returns: dict - {"NetworksDeleted": [...]}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filters | No |