From a135b385fd0008ef5e7609f3b068a944f2f9bc46 Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Wed, 6 Nov 2013 10:00:24 -0800 Subject: [PATCH] Update documentation to reflect changes in Config and HostConfig Upstream-commit: 70f44d5531a5c6dcb96b7e608a96beb52e93b506 Component: engine --- .../docs/sources/api/docker_remote_api_v1.6.rst | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/components/engine/docs/sources/api/docker_remote_api_v1.6.rst b/components/engine/docs/sources/api/docker_remote_api_v1.6.rst index defe145d06..09da63d8d9 100644 --- a/components/engine/docs/sources/api/docker_remote_api_v1.6.rst +++ b/components/engine/docs/sources/api/docker_remote_api_v1.6.rst @@ -121,8 +121,7 @@ Create a container "AttachStdin":false, "AttachStdout":true, "AttachStderr":true, - "PortSpecs":null, - "Privileged": false, + "ExposedPorts":{}, "Tty":false, "OpenStdin":false, "StdinOnce":false, @@ -135,7 +134,6 @@ Create a container "Volumes":{}, "VolumesFrom":"", "WorkingDir":"" - } **Example response**: @@ -191,7 +189,7 @@ Inspect a container "AttachStdin": false, "AttachStdout": true, "AttachStderr": true, - "PortSpecs": null, + "ExposedPorts": {}, "Tty": false, "OpenStdin": false, "StdinOnce": false, @@ -362,7 +360,12 @@ Start a container { "Binds":["/tmp:/tmp"], - "LxcConf":{"lxc.utsname":"docker"} + "LxcConf":{"lxc.utsname":"docker"}, + "ContainerIDFile": "", + "Privileged": false, + "PortBindings": {"22/tcp": [{HostIp:"", HostPort:""}]}, + "Links": [], + "PublishAllPorts": false } **Example response**: @@ -795,7 +798,7 @@ Inspect an image "AttachStdin":false, "AttachStdout":false, "AttachStderr":false, - "PortSpecs":null, + "ExposedPorts":{}, "Tty":true, "OpenStdin":true, "StdinOnce":false, @@ -1141,7 +1144,7 @@ Create a new image from a container's changes { "Cmd": ["cat", "/world"], - "PortSpecs":["22"] + "ExposedPorts":{"22/tcp":{}} } **Example response**: