mirror of https://github.com/docker/docs.git
Bring /info API doc in line with the actual response.
The fix handles versions 1.18 and 1.19. Closes #13139. Signed-off-by: Raghuram Devarakonda <draghuram@gmail.com>
This commit is contained in:
parent
19ae59f910
commit
9c0608565c
|
@ -158,6 +158,7 @@ pages:
|
||||||
- ['reference/api/docker-io_api.md', 'Reference', 'Docker Hub API']
|
- ['reference/api/docker-io_api.md', 'Reference', 'Docker Hub API']
|
||||||
#- ['reference/image-spec-v1.md', 'Reference', 'Docker Image Specification v1.0.0']
|
#- ['reference/image-spec-v1.md', 'Reference', 'Docker Image Specification v1.0.0']
|
||||||
- ['reference/api/docker_remote_api.md', 'Reference', 'Docker Remote API']
|
- ['reference/api/docker_remote_api.md', 'Reference', 'Docker Remote API']
|
||||||
|
- ['reference/api/docker_remote_api_v1.19.md', 'Reference', 'Docker Remote API v1.19']
|
||||||
- ['reference/api/docker_remote_api_v1.18.md', 'Reference', 'Docker Remote API v1.18']
|
- ['reference/api/docker_remote_api_v1.18.md', 'Reference', 'Docker Remote API v1.18']
|
||||||
- ['reference/api/docker_remote_api_v1.17.md', 'Reference', 'Docker Remote API v1.17']
|
- ['reference/api/docker_remote_api_v1.17.md', 'Reference', 'Docker Remote API v1.17']
|
||||||
- ['reference/api/docker_remote_api_v1.16.md', 'Reference', 'Docker Remote API v1.16']
|
- ['reference/api/docker_remote_api_v1.16.md', 'Reference', 'Docker Remote API v1.16']
|
||||||
|
|
|
@ -58,6 +58,16 @@ disconnect
|
||||||
|
|
||||||
This endpoint now accepts a `since` timestamp parameter.
|
This endpoint now accepts a `since` timestamp parameter.
|
||||||
|
|
||||||
|
`GET /info`
|
||||||
|
|
||||||
|
**New!**
|
||||||
|
|
||||||
|
The fields `Debug`, `IPv4Forwarding`, `MemoryLimit`, and `SwapLimit`
|
||||||
|
are now returned as boolean instead of as an int.
|
||||||
|
|
||||||
|
In addition, the end point now returns the new boolean fields
|
||||||
|
`CpuCfsPeriod`, `CpuCfsQuota`, and `OomKillDisable`.
|
||||||
|
|
||||||
## v1.18
|
## v1.18
|
||||||
|
|
||||||
### Full documentation
|
### Full documentation
|
||||||
|
|
|
@ -1594,33 +1594,48 @@ Display system-wide information
|
||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
|
|
||||||
{
|
{
|
||||||
"Containers":11,
|
"Containers": 11,
|
||||||
"Images":16,
|
"Debug": 0,
|
||||||
"Driver":"btrfs",
|
|
||||||
"DriverStatus": [[""]],
|
|
||||||
"ExecutionDriver":"native-0.1",
|
|
||||||
"KernelVersion":"3.12.0-1-amd64"
|
|
||||||
"NCPU":1,
|
|
||||||
"MemTotal":2099236864,
|
|
||||||
"Name":"prod-server-42",
|
|
||||||
"ID":"7TRN:IPZB:QYBB:VPBQ:UMPP:KARE:6ZNR:XE6T:7EWV:PKF4:ZOJD:TPYS",
|
|
||||||
"Debug":false,
|
|
||||||
"NFd": 11,
|
|
||||||
"NGoroutines":21,
|
|
||||||
"SystemTime": "2015-03-10T11:11:23.730591467-07:00"
|
|
||||||
"NEventsListener":0,
|
|
||||||
"InitPath":"/usr/bin/docker",
|
|
||||||
"InitSha1":"",
|
|
||||||
"IndexServerAddress":["https://index.docker.io/v1/"],
|
|
||||||
"MemoryLimit":true,
|
|
||||||
"SwapLimit":false,
|
|
||||||
"IPv4Forwarding":true,
|
|
||||||
"Labels":["storage=ssd"],
|
|
||||||
"DockerRootDir": "/var/lib/docker",
|
"DockerRootDir": "/var/lib/docker",
|
||||||
"HttpProxy": "http://test:test@localhost:8080"
|
"Driver": "btrfs",
|
||||||
"HttpsProxy": "https://test:test@localhost:8080"
|
"DriverStatus": [[""]],
|
||||||
"NoProxy": "9.81.1.160"
|
"ExecutionDriver": "native-0.1",
|
||||||
|
"HttpProxy": "http://test:test@localhost:8080",
|
||||||
|
"HttpsProxy": "https://test:test@localhost:8080",
|
||||||
|
"ID": "7TRN:IPZB:QYBB:VPBQ:UMPP:KARE:6ZNR:XE6T:7EWV:PKF4:ZOJD:TPYS",
|
||||||
|
"IPv4Forwarding": 1,
|
||||||
|
"Images": 16,
|
||||||
|
"IndexServerAddress": "https://index.docker.io/v1/",
|
||||||
|
"InitPath": "/usr/bin/docker",
|
||||||
|
"InitSha1": "",
|
||||||
|
"KernelVersion": "3.12.0-1-amd64",
|
||||||
|
"Labels": [
|
||||||
|
"storage=ssd"
|
||||||
|
],
|
||||||
|
"MemTotal": 2099236864,
|
||||||
|
"MemoryLimit": 1,
|
||||||
|
"NCPU": 1,
|
||||||
|
"NEventsListener": 0,
|
||||||
|
"NFd": 11,
|
||||||
|
"NGoroutines": 21,
|
||||||
|
"Name": "prod-server-42",
|
||||||
|
"NoProxy": "9.81.1.160",
|
||||||
"OperatingSystem": "Boot2Docker",
|
"OperatingSystem": "Boot2Docker",
|
||||||
|
"RegistryConfig": {
|
||||||
|
"IndexConfigs": {
|
||||||
|
"docker.io": {
|
||||||
|
"Mirrors": null,
|
||||||
|
"Name": "docker.io",
|
||||||
|
"Official": true,
|
||||||
|
"Secure": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"InsecureRegistryCIDRs": [
|
||||||
|
"127.0.0.0/8"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"SwapLimit": 0,
|
||||||
|
"SystemTime": "2015-03-10T11:11:23.730591467-07:00"
|
||||||
}
|
}
|
||||||
|
|
||||||
Status Codes:
|
Status Codes:
|
||||||
|
|
|
@ -1612,33 +1612,51 @@ Display system-wide information
|
||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
|
|
||||||
{
|
{
|
||||||
"Containers":11,
|
"Containers": 11,
|
||||||
"Images":16,
|
"CpuCfsPeriod": true,
|
||||||
"Driver":"btrfs",
|
"CpuCfsQuota": true,
|
||||||
"DriverStatus": [[""]],
|
"Debug": false,
|
||||||
"ExecutionDriver":"native-0.1",
|
|
||||||
"KernelVersion":"3.12.0-1-amd64"
|
|
||||||
"NCPU":1,
|
|
||||||
"MemTotal":2099236864,
|
|
||||||
"Name":"prod-server-42",
|
|
||||||
"ID":"7TRN:IPZB:QYBB:VPBQ:UMPP:KARE:6ZNR:XE6T:7EWV:PKF4:ZOJD:TPYS",
|
|
||||||
"Debug":false,
|
|
||||||
"NFd": 11,
|
|
||||||
"NGoroutines":21,
|
|
||||||
"SystemTime": "2015-03-10T11:11:23.730591467-07:00"
|
|
||||||
"NEventsListener":0,
|
|
||||||
"InitPath":"/usr/bin/docker",
|
|
||||||
"InitSha1":"",
|
|
||||||
"IndexServerAddress":["https://index.docker.io/v1/"],
|
|
||||||
"MemoryLimit":true,
|
|
||||||
"SwapLimit":false,
|
|
||||||
"IPv4Forwarding":true,
|
|
||||||
"Labels":["storage=ssd"],
|
|
||||||
"DockerRootDir": "/var/lib/docker",
|
"DockerRootDir": "/var/lib/docker",
|
||||||
"HttpProxy": "http://test:test@localhost:8080"
|
"Driver": "btrfs",
|
||||||
"HttpsProxy": "https://test:test@localhost:8080"
|
"DriverStatus": [[""]],
|
||||||
"NoProxy": "9.81.1.160"
|
"ExecutionDriver": "native-0.1",
|
||||||
|
"HttpProxy": "http://test:test@localhost:8080",
|
||||||
|
"HttpsProxy": "https://test:test@localhost:8080",
|
||||||
|
"ID": "7TRN:IPZB:QYBB:VPBQ:UMPP:KARE:6ZNR:XE6T:7EWV:PKF4:ZOJD:TPYS",
|
||||||
|
"IPv4Forwarding": true,
|
||||||
|
"Images": 16,
|
||||||
|
"IndexServerAddress": "https://index.docker.io/v1/",
|
||||||
|
"InitPath": "/usr/bin/docker",
|
||||||
|
"InitSha1": "",
|
||||||
|
"KernelVersion": "3.12.0-1-amd64",
|
||||||
|
"Labels": [
|
||||||
|
"storage=ssd"
|
||||||
|
],
|
||||||
|
"MemTotal": 2099236864,
|
||||||
|
"MemoryLimit": true,
|
||||||
|
"NCPU": 1,
|
||||||
|
"NEventsListener": 0,
|
||||||
|
"NFd": 11,
|
||||||
|
"NGoroutines": 21,
|
||||||
|
"Name": "prod-server-42",
|
||||||
|
"NoProxy": "9.81.1.160",
|
||||||
|
"OomKillDisable": true,
|
||||||
"OperatingSystem": "Boot2Docker",
|
"OperatingSystem": "Boot2Docker",
|
||||||
|
"RegistryConfig": {
|
||||||
|
"IndexConfigs": {
|
||||||
|
"docker.io": {
|
||||||
|
"Mirrors": null,
|
||||||
|
"Name": "docker.io",
|
||||||
|
"Official": true,
|
||||||
|
"Secure": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"InsecureRegistryCIDRs": [
|
||||||
|
"127.0.0.0/8"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"SwapLimit": false,
|
||||||
|
"SystemTime": "2015-03-10T11:11:23.730591467-07:00"
|
||||||
}
|
}
|
||||||
|
|
||||||
Status Codes:
|
Status Codes:
|
||||||
|
|
Loading…
Reference in New Issue