Fixed #3039 - Added clarify on port options in API

Upstream-commit: d2d8a4a6c507bc8e7d591925276d79d89ce6beaf
Component: engine
This commit is contained in:
James Turnbull
2013-12-24 13:01:59 -05:00
parent cc04ab4930
commit 4fb94b472a

View File

@ -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**: