|
@@ -136,9 +136,11 @@ Create a container
|
|
},
|
|
},
|
|
"VolumesFrom":"",
|
|
"VolumesFrom":"",
|
|
"WorkingDir":""
|
|
"WorkingDir":""
|
|
-
|
|
|
|
|
|
+ "ExposedPorts":{
|
|
|
|
+ "22/tcp": {}
|
|
|
|
+ }
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
**Example response**:
|
|
**Example response**:
|
|
|
|
|
|
.. sourcecode:: http
|
|
.. sourcecode:: http
|
|
@@ -363,11 +365,11 @@ Start a container
|
|
{
|
|
{
|
|
"Binds":["/tmp:/tmp"],
|
|
"Binds":["/tmp:/tmp"],
|
|
"LxcConf":{"lxc.utsname":"docker"},
|
|
"LxcConf":{"lxc.utsname":"docker"},
|
|
- "PortBindings":null,
|
|
|
|
|
|
+ "PortBindings":{ "22/tcp": [{ "HostPort": "11022" }] },
|
|
"Privileged":false,
|
|
"Privileged":false,
|
|
"PublishAllPorts":false
|
|
"PublishAllPorts":false
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
Binds need to reference Volumes that were defined during container creation.
|
|
Binds need to reference Volumes that were defined during container creation.
|
|
|
|
|
|
**Example response**:
|
|
**Example response**:
|