| ... | ... |
@@ -136,9 +136,11 @@ Create a container |
| 136 | 136 |
}, |
| 137 | 137 |
"VolumesFrom":"", |
| 138 | 138 |
"WorkingDir":"" |
| 139 |
- |
|
| 139 |
+ "ExposedPorts":{
|
|
| 140 |
+ "22/tcp": {}
|
|
| 141 |
+ } |
|
| 140 | 142 |
} |
| 141 |
- |
|
| 143 |
+ |
|
| 142 | 144 |
**Example response**: |
| 143 | 145 |
|
| 144 | 146 |
.. sourcecode:: http |
| ... | ... |
@@ -363,11 +365,11 @@ Start a container |
| 363 | 363 |
{
|
| 364 | 364 |
"Binds":["/tmp:/tmp"], |
| 365 | 365 |
"LxcConf":{"lxc.utsname":"docker"},
|
| 366 |
- "PortBindings":null, |
|
| 366 |
+ "PortBindings":{ "22/tcp": [{ "HostPort": "11022" }] },
|
|
| 367 | 367 |
"Privileged":false, |
| 368 | 368 |
"PublishAllPorts":false |
| 369 | 369 |
} |
| 370 |
- |
|
| 370 |
+ |
|
| 371 | 371 |
Binds need to reference Volumes that were defined during container creation. |
| 372 | 372 |
|
| 373 | 373 |
**Example response**: |