Display internal flag on network inspect

Also adds internal network tests for bridge network

Signed-off-by: Chun Chen <ramichen@tencent.com>
Upstream-commit: c199506b59f60ac456cb0448ddd86e6dec92bc0a
Component: engine
This commit is contained in:
Chun Chen
2016-01-15 15:31:12 +08:00
parent e7c326da3c
commit e109e016c1
6 changed files with 22 additions and 0 deletions

View File

@ -105,6 +105,7 @@ This section lists each version from latest to oldest. Each listing includes a
[Docker Remote API v1.23](docker_remote_api_v1.23.md) documentation
* `GET /containers/json` returns the state of the container, one of `created`, `restarting`, `running`, `paused`, `exited` or `dead`.
* `GET /networks/(name)` now returns an `Internal` field showing whether the network is internal or not.
### v1.22 API changes

View File

@ -2963,6 +2963,7 @@ Content-Type: application/json
"foo": "bar"
}
},
"Internal": false,
"Containers": {
"19a4d5d687db25203351ed79d478946f861258f018fe384f229f2efa4b23513c": {
"Name": "test",

View File

@ -50,6 +50,7 @@ $ sudo docker network inspect bridge
}
]
},
"Internal": false,
"Containers": {
"bda12f8922785d1f160be70736f26c1e331ab8aaf8ed8d56728508f2e2fd4727": {
"Name": "container2",