network_list
List Docker networks with optional filtering by names, IDs, labels, or driver. Use greedy mode to include connected containers details.
Instructions
List networks.
Valid filter keys: driver (driver name), label (key or key=value), type
("custom" or "builtin"). names/ids are a separate shorthand for filtering by exact
name/id, applied in addition to filters. Set greedy to fetch each network's attrs
individually (adds the connected-containers detail that network_inspect returns, at
the cost of one extra daemon call per network) — leave it False for a fast summary list.
args:
names - Filter by exact network names
ids - Filter by exact network ids
filters - Additional server-side filters; see description for valid keys
greedy - Fetch extended per-network details (including connected containers)
managed_only - Only return networks created by this MCP server (filters on the
docker-mcp-server.managed label); combines with any filters given
returns: list - A list of network attrs dicts
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | ||
| names | No | ||
| greedy | No | ||
| filters | No | ||
| managed_only | No |