Browse code

Added some 1.7 API updates that were missing from 1.8

James Turnbull authored on 2014/01/02 18:17:33
Showing 2 changed files
... ...
@@ -135,12 +135,12 @@ Create a container
135 135
 			"/tmp": {}
136 136
 		},
137 137
 		"VolumesFrom":"",
138
-		"WorkingDir":""
139
-    "ExposedPorts":{
140
-      "22/tcp": {}
141
-    }
138
+		"WorkingDir":"",
139
+		"ExposedPorts":{
140
+			"22/tcp": {}
141
+		}
142 142
 	   }
143
-	
143
+
144 144
 	**Example response**:
145 145
 
146 146
 	.. sourcecode:: http
... ...
@@ -122,7 +122,6 @@ Create a container
122 122
 		"AttachStdout":true,
123 123
 		"AttachStderr":true,
124 124
 		"PortSpecs":null,
125
-		"Privileged": false,
126 125
 		"Tty":false,
127 126
 		"OpenStdin":false,
128 127
 		"StdinOnce":false,
... ...
@@ -132,12 +131,16 @@ Create a container
132 132
 		],
133 133
 		"Dns":null,
134 134
 		"Image":"base",
135
-		"Volumes":{},
135
+		"Volumes":{
136
+			"/tmp": {}
137
+		},
136 138
 		"VolumesFrom":"",
137
-		"WorkingDir":""
138
-
139
+		"WorkingDir":"",
140
+		"ExposedPorts":{
141
+			"22/tcp": {}
142
+		}
139 143
 	   }
140
-	   
144
+
141 145
 	**Example response**:
142 146
 
143 147
 	.. sourcecode:: http
... ...
@@ -378,7 +381,10 @@ Start a container
378 378
 
379 379
            {
380 380
                 "Binds":["/tmp:/tmp"],
381
-                "LxcConf":{"lxc.utsname":"docker"}
381
+                "LxcConf":{"lxc.utsname":"docker"},
382
+                "PortBindings":{ "22/tcp": [{ "HostPort": "11022" }] },
383
+                "PublishAllPorts":false,
384
+                "Privileged":false
382 385
            }
383 386
 
384 387
         **Example response**: