prune_networks
Remove Docker networks with no active container endpoints to free up resources. Filters allow targeting networks by creation time or labels.
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 |