Merge pull request #2574 from crosbymichael/api-port-changes

Update documentation to reflect changes in Config and HostConfig
This commit is contained in:
Andy Rothfusz 2013-11-11 09:59:48 -08:00
commit 1d9139bb89
1 changed files with 10 additions and 7 deletions

View File

@ -121,8 +121,7 @@ Create a container
"AttachStdin":false, "AttachStdin":false,
"AttachStdout":true, "AttachStdout":true,
"AttachStderr":true, "AttachStderr":true,
"PortSpecs":null, "ExposedPorts":{},
"Privileged": false,
"Tty":false, "Tty":false,
"OpenStdin":false, "OpenStdin":false,
"StdinOnce":false, "StdinOnce":false,
@ -135,7 +134,6 @@ Create a container
"Volumes":{}, "Volumes":{},
"VolumesFrom":"", "VolumesFrom":"",
"WorkingDir":"" "WorkingDir":""
} }
**Example response**: **Example response**:
@ -242,7 +240,7 @@ Inspect a container
"AttachStdin": false, "AttachStdin": false,
"AttachStdout": true, "AttachStdout": true,
"AttachStderr": true, "AttachStderr": true,
"PortSpecs": null, "ExposedPorts": {},
"Tty": false, "Tty": false,
"OpenStdin": false, "OpenStdin": false,
"StdinOnce": false, "StdinOnce": false,
@ -413,7 +411,12 @@ Start a container
{ {
"Binds":["/tmp:/tmp"], "Binds":["/tmp:/tmp"],
"LxcConf":{"lxc.utsname":"docker"} "LxcConf":{"lxc.utsname":"docker"},
"ContainerIDFile": "",
"Privileged": false,
"PortBindings": {"22/tcp": [{HostIp:"", HostPort:""}]},
"Links": [],
"PublishAllPorts": false
} }
**Example response**: **Example response**:
@ -846,7 +849,7 @@ Inspect an image
"AttachStdin":false, "AttachStdin":false,
"AttachStdout":false, "AttachStdout":false,
"AttachStderr":false, "AttachStderr":false,
"PortSpecs":null, "ExposedPorts":{},
"Tty":true, "Tty":true,
"OpenStdin":true, "OpenStdin":true,
"StdinOnce":false, "StdinOnce":false,
@ -1192,7 +1195,7 @@ Create a new image from a container's changes
{ {
"Cmd": ["cat", "/world"], "Cmd": ["cat", "/world"],
"PortSpecs":["22"] "ExposedPorts":{"22/tcp":{}}
} }
**Example response**: **Example response**: