Merge pull request #3340 from jamtur01/apiport

Fixed #3039 - Added clarification on port options in API
This commit is contained in:
Andy Rothfusz 2013-12-24 14:34:13 -08:00
commit c654aea4f2
1 changed files with 6 additions and 4 deletions

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