mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fixed #3039 - Added clarify on port options in API
This commit is contained in:
parent
5875953d9b
commit
d2d8a4a6c5
1 changed files with 6 additions and 4 deletions
|
@ -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**:
|
||||
|
|
Loading…
Add table
Reference in a new issue