mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #32978 from thaJeztah/fix-network-list-example
Update description and example for network-list endpoint
This commit is contained in:
commit
afd7e2d2d5
1 changed files with 5 additions and 6 deletions
|
@ -6231,6 +6231,11 @@ paths:
|
||||||
/networks:
|
/networks:
|
||||||
get:
|
get:
|
||||||
summary: "List networks"
|
summary: "List networks"
|
||||||
|
description: |
|
||||||
|
Returns a list of networks. For details on the format, see [the network inspect endpoint](#operation/NetworkInspect).
|
||||||
|
|
||||||
|
Note that it uses a different, smaller representation of a network than inspecting a single network. For example,
|
||||||
|
the list of containers attached to the network is not propagated in API versions 1.28 and up.
|
||||||
operationId: "NetworkList"
|
operationId: "NetworkList"
|
||||||
produces:
|
produces:
|
||||||
- "application/json"
|
- "application/json"
|
||||||
|
@ -6257,12 +6262,6 @@ paths:
|
||||||
Config:
|
Config:
|
||||||
-
|
-
|
||||||
Subnet: "172.17.0.0/16"
|
Subnet: "172.17.0.0/16"
|
||||||
Containers:
|
|
||||||
39b69226f9d79f5634485fb236a23b2fe4e96a0a94128390a7fbbcc167065867:
|
|
||||||
EndpointID: "ed2419a97c1d9954d05b46e462e7002ea552f216e9b136b80a7db8d98b442eda"
|
|
||||||
MacAddress: "02:42:ac:11:00:02"
|
|
||||||
IPv4Address: "172.17.0.2/16"
|
|
||||||
IPv6Address: ""
|
|
||||||
Options:
|
Options:
|
||||||
com.docker.network.bridge.default_bridge: "true"
|
com.docker.network.bridge.default_bridge: "true"
|
||||||
com.docker.network.bridge.enable_icc: "true"
|
com.docker.network.bridge.enable_icc: "true"
|
||||||
|
|
Loading…
Add table
Reference in a new issue