mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #19646 from nishanttotla/19277-CustomInfoField
Display SystemStatus field in docker info
This commit is contained in:
commit
6b57380173
4 changed files with 9 additions and 0 deletions
api/client
docs/reference/api
|
@ -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, "Execution Driver: %s\n", info.ExecutionDriver)
|
||||||
ioutils.FprintfIfNotEmpty(cli.out, "Logging Driver: %s\n", info.LoggingDriver)
|
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
|
* `GET /networks/{network-id}` Now returns IPAM config options for custom IPAM plugins if any
|
||||||
are available.
|
are available.
|
||||||
* `GET /networks/<network-id>` now returns subnets info for user-defined networks.
|
* `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
|
### v1.21 API changes
|
||||||
|
|
||||||
|
|
|
@ -2102,6 +2102,7 @@ Display system-wide information
|
||||||
"DockerRootDir": "/var/lib/docker",
|
"DockerRootDir": "/var/lib/docker",
|
||||||
"Driver": "btrfs",
|
"Driver": "btrfs",
|
||||||
"DriverStatus": [[""]],
|
"DriverStatus": [[""]],
|
||||||
|
"SystemStatus": [["State", "Healthy"]],
|
||||||
"Plugins": {
|
"Plugins": {
|
||||||
"Volume": [
|
"Volume": [
|
||||||
"local"
|
"local"
|
||||||
|
|
|
@ -2102,6 +2102,7 @@ Display system-wide information
|
||||||
"DockerRootDir": "/var/lib/docker",
|
"DockerRootDir": "/var/lib/docker",
|
||||||
"Driver": "btrfs",
|
"Driver": "btrfs",
|
||||||
"DriverStatus": [[""]],
|
"DriverStatus": [[""]],
|
||||||
|
"SystemStatus": [["State", "Healthy"]],
|
||||||
"Plugins": {
|
"Plugins": {
|
||||||
"Volume": [
|
"Volume": [
|
||||||
"local"
|
"local"
|
||||||
|
|
Loading…
Add table
Reference in a new issue