From 4fb94b472ac8f93bb14736d3454c7483996ae4dc Mon Sep 17 00:00:00 2001 From: James Turnbull Date: Tue, 24 Dec 2013 13:01:59 -0500 Subject: [PATCH] Fixed #3039 - Added clarify on port options in API Upstream-commit: d2d8a4a6c507bc8e7d591925276d79d89ce6beaf Component: engine --- .../engine/docs/sources/api/docker_remote_api_v1.7.rst | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/components/engine/docs/sources/api/docker_remote_api_v1.7.rst b/components/engine/docs/sources/api/docker_remote_api_v1.7.rst index c985f4f018..c33b276d25 100644 --- a/components/engine/docs/sources/api/docker_remote_api_v1.7.rst +++ b/components/engine/docs/sources/api/docker_remote_api_v1.7.rst @@ -136,9 +136,11 @@ Create a container }, "VolumesFrom":"", "WorkingDir":"" - + "ExposedPorts":{ + "22/tcp": {} + } } - + **Example response**: .. sourcecode:: http @@ -363,11 +365,11 @@ Start a container { "Binds":["/tmp:/tmp"], "LxcConf":{"lxc.utsname":"docker"}, - "PortBindings":null, + "PortBindings":{ "22/tcp": [{ "HostPort": "11022" }] }, "Privileged":false, "PublishAllPorts":false } - + Binds need to reference Volumes that were defined during container creation. **Example response**: