Adding SystemStatus field for /info endpoint
Signed-off-by: Nishant Totla <nishanttotla@gmail.com> Upstream-commit: 6c5e8dd4c2351fac8bd76d409f44f42edd4b2f4a Component: engine
This commit is contained in:
@ -42,6 +42,11 @@ func (cli *DockerCli) CmdInfo(args ...string) error {
|
||||
}
|
||||
|
||||
}
|
||||
if info.SystemStatus != nil {
|
||||
for _, pair := range info.SystemStatus {
|
||||
fmt.Fprintf(cli.out, "%s: %s\n", pair[0], pair[1])
|
||||
}
|
||||
}
|
||||
ioutils.FprintfIfNotEmpty(cli.out, "Execution Driver: %s\n", info.ExecutionDriver)
|
||||
ioutils.FprintfIfNotEmpty(cli.out, "Logging Driver: %s\n", info.LoggingDriver)
|
||||
|
||||
|
||||
@ -128,6 +128,8 @@ This section lists each version from latest to oldest. Each listing includes a
|
||||
* `GET /networks/{network-id}` Now returns IPAM config options for custom IPAM plugins if any
|
||||
are available.
|
||||
* `GET /networks/<network-id>` now returns subnets info for user-defined networks.
|
||||
* `GET /info` can now return a `SystemStatus` field useful for returning additional information about applications
|
||||
that are built on top of engine.
|
||||
|
||||
### v1.21 API changes
|
||||
|
||||
|
||||
@ -2102,6 +2102,7 @@ Display system-wide information
|
||||
"DockerRootDir": "/var/lib/docker",
|
||||
"Driver": "btrfs",
|
||||
"DriverStatus": [[""]],
|
||||
"SystemStatus": [["State", "Healthy"]],
|
||||
"Plugins": {
|
||||
"Volume": [
|
||||
"local"
|
||||
|
||||
@ -2102,6 +2102,7 @@ Display system-wide information
|
||||
"DockerRootDir": "/var/lib/docker",
|
||||
"Driver": "btrfs",
|
||||
"DriverStatus": [[""]],
|
||||
"SystemStatus": [["State", "Healthy"]],
|
||||
"Plugins": {
|
||||
"Volume": [
|
||||
"local"
|
||||
|
||||
Reference in New Issue
Block a user