mirror of https://github.com/docker/docs.git
docs: update docker inspect part of docs
The docker inspect part of docs is quit different with what it really be. Signed-off-by: Hu Keping <hukeping@huawei.com>
This commit is contained in:
parent
de9783980b
commit
8d414fd434
|
@ -266,73 +266,104 @@ Return low-level information on the container `id`
|
||||||
HTTP/1.1 200 OK
|
HTTP/1.1 200 OK
|
||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
|
|
||||||
{
|
{
|
||||||
"Id": "4fa6e0f0c6786287e131c3852c58a2e01cc697a68231826813597e4994f1d6e2",
|
"AppArmorProfile": "",
|
||||||
"Created": "2013-05-07T14:51:42.041847+02:00",
|
"Args": [
|
||||||
"Path": "date",
|
"-c",
|
||||||
"Args": [],
|
"exit 9"
|
||||||
"Config": {
|
],
|
||||||
"Hostname": "4fa6e0f0c678",
|
"Config": {
|
||||||
"User": "",
|
"AttachStderr": true,
|
||||||
"Memory": 0,
|
"AttachStdin": false,
|
||||||
"MemorySwap": 0,
|
"AttachStdout": true,
|
||||||
"AttachStdin": false,
|
"Cmd": [
|
||||||
"AttachStdout": true,
|
"/bin/sh",
|
||||||
"AttachStderr": true,
|
"-c",
|
||||||
"PortSpecs": null,
|
"exit 9"
|
||||||
"Tty": false,
|
],
|
||||||
"OpenStdin": false,
|
"CpuShares": 0,
|
||||||
"StdinOnce": false,
|
"Cpuset": "",
|
||||||
"Env": null,
|
"Domainname": "",
|
||||||
"Cmd": [
|
"Entrypoint": null,
|
||||||
"date"
|
"Env": [
|
||||||
],
|
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
||||||
"Dns": null,
|
],
|
||||||
"Image": "base",
|
"ExposedPorts": null,
|
||||||
"Volumes": {},
|
"Hostname": "ba033ac44011",
|
||||||
"VolumesFrom": "",
|
"Image": "ubuntu",
|
||||||
"WorkingDir": ""
|
"MacAddress": "",
|
||||||
},
|
"Memory": 0,
|
||||||
"State": {
|
"MemorySwap": 0,
|
||||||
"Running": false,
|
"NetworkDisabled": false,
|
||||||
"Pid": 0,
|
"OnBuild": null,
|
||||||
"ExitCode": 0,
|
"OpenStdin": false,
|
||||||
"StartedAt": "2013-05-07T14:51:42.087658+02:01360",
|
"PortSpecs": null,
|
||||||
"Ghost": false
|
"StdinOnce": false,
|
||||||
},
|
"Tty": false,
|
||||||
"Image": "b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc",
|
"User": "",
|
||||||
"NetworkSettings": {
|
"Volumes": null,
|
||||||
"IpAddress": "",
|
"WorkingDir": ""
|
||||||
"IpPrefixLen": 0,
|
},
|
||||||
"Gateway": "",
|
"Created": "2015-01-06T15:47:31.485331387Z",
|
||||||
"Bridge": "",
|
"Driver": "devicemapper",
|
||||||
"PortMapping": null
|
"ExecDriver": "native-0.2",
|
||||||
},
|
"ExecIDs": null,
|
||||||
"SysInitPath": "/home/kitty/go/src/github.com/docker/docker/bin/docker",
|
"HostConfig": {
|
||||||
"ResolvConfPath": "/etc/resolv.conf",
|
"Binds": null,
|
||||||
"Volumes": {},
|
"CapAdd": null,
|
||||||
"ExecIDs": [
|
"CapDrop": null,
|
||||||
"15f211491dced6a353a2e0f37fe3f3692ee2370a4782418e9bf7052865c10fde"
|
"ContainerIDFile": "",
|
||||||
],
|
"Devices": [],
|
||||||
"HostConfig": {
|
"Dns": null,
|
||||||
"Binds": null,
|
"DnsSearch": null,
|
||||||
"ContainerIDFile": "",
|
"ExtraHosts": null,
|
||||||
"LxcConf": [],
|
"IpcMode": "",
|
||||||
"Privileged": false,
|
"Links": null,
|
||||||
"PortBindings": {
|
"LxcConf": [],
|
||||||
"80/tcp": [
|
"NetworkMode": "bridge",
|
||||||
{
|
"PortBindings": {},
|
||||||
"HostIp": "0.0.0.0",
|
"Privileged": false,
|
||||||
"HostPort": "49153"
|
"PublishAllPorts": false,
|
||||||
}
|
"RestartPolicy": {
|
||||||
]
|
"MaximumRetryCount": 2,
|
||||||
},
|
"Name": "on-failure"
|
||||||
"Links": ["/name:alias"],
|
},
|
||||||
"PublishAllPorts": false,
|
"SecurityOpt": null,
|
||||||
"CapAdd": ["NET_ADMIN"],
|
"VolumesFrom": null
|
||||||
"CapDrop": ["MKNOD"]
|
},
|
||||||
}
|
"HostnamePath": "/var/lib/docker/containers/ba033ac4401106a3b513bc9d639eee123ad78ca3616b921167cd74b20e25ed39/hostname",
|
||||||
}
|
"HostsPath": "/var/lib/docker/containers/ba033ac4401106a3b513bc9d639eee123ad78ca3616b921167cd74b20e25ed39/hosts",
|
||||||
|
"Id": "ba033ac4401106a3b513bc9d639eee123ad78ca3616b921167cd74b20e25ed39",
|
||||||
|
"Image": "04c5d3b7b0656168630d3ba35d8889bd0e9caafcaeb3004d2bfbc47e7c5d35d2",
|
||||||
|
"MountLabel": "",
|
||||||
|
"Name": "/boring_euclid",
|
||||||
|
"NetworkSettings": {
|
||||||
|
"Bridge": "",
|
||||||
|
"Gateway": "",
|
||||||
|
"IPAddress": "",
|
||||||
|
"IPPrefixLen": 0,
|
||||||
|
"MacAddress": "",
|
||||||
|
"PortMapping": null,
|
||||||
|
"Ports": null
|
||||||
|
},
|
||||||
|
"Path": "/bin/sh",
|
||||||
|
"ProcessLabel": "",
|
||||||
|
"ResolvConfPath": "/var/lib/docker/containers/ba033ac4401106a3b513bc9d639eee123ad78ca3616b921167cd74b20e25ed39/resolv.conf",
|
||||||
|
"RestartCount": 1,
|
||||||
|
"State": {
|
||||||
|
"Error": "",
|
||||||
|
"ExitCode": 9,
|
||||||
|
"FinishedAt": "2015-01-06T15:47:32.080254511Z",
|
||||||
|
"OOMKilled": false,
|
||||||
|
"Paused": false,
|
||||||
|
"Pid": 0,
|
||||||
|
"Restarting": false,
|
||||||
|
"Running": false,
|
||||||
|
"StartedAt": "2015-01-06T15:47:32.072697474Z"
|
||||||
|
},
|
||||||
|
"Volumes": {},
|
||||||
|
"VolumesRW": {}
|
||||||
|
}
|
||||||
|
|
||||||
Status Codes:
|
Status Codes:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue