Browse code

Merge pull request #2574 from crosbymichael/api-port-changes

Update documentation to reflect changes in Config and HostConfig

Andy Rothfusz authored on 2013/11/12 02:59:48
Showing 1 changed files
... ...
@@ -121,8 +121,7 @@ Create a container
121 121
 		"AttachStdin":false,
122 122
 		"AttachStdout":true,
123 123
 		"AttachStderr":true,
124
-		"PortSpecs":null,
125
-		"Privileged": false,
124
+		"ExposedPorts":{},
126 125
 		"Tty":false,
127 126
 		"OpenStdin":false,
128 127
 		"StdinOnce":false,
... ...
@@ -135,7 +134,6 @@ Create a container
135 135
 		"Volumes":{},
136 136
 		"VolumesFrom":"",
137 137
 		"WorkingDir":""
138
-
139 138
 	   }
140 139
 	   
141 140
 	**Example response**:
... ...
@@ -242,7 +240,7 @@ Inspect a container
242 242
 				"AttachStdin": false,
243 243
 				"AttachStdout": true,
244 244
 				"AttachStderr": true,
245
-				"PortSpecs": null,
245
+				"ExposedPorts": {},
246 246
 				"Tty": false,
247 247
 				"OpenStdin": false,
248 248
 				"StdinOnce": false,
... ...
@@ -413,7 +411,12 @@ Start a container
413 413
 
414 414
            {
415 415
                 "Binds":["/tmp:/tmp"],
416
-                "LxcConf":{"lxc.utsname":"docker"}
416
+                "LxcConf":{"lxc.utsname":"docker"},
417
+                "ContainerIDFile": "",
418
+                "Privileged": false,
419
+                "PortBindings": {"22/tcp": [{HostIp:"", HostPort:""}]},
420
+                "Links": [],
421
+                "PublishAllPorts": false
417 422
            }
418 423
 
419 424
         **Example response**:
... ...
@@ -846,7 +849,7 @@ Inspect an image
846 846
 				"AttachStdin":false,
847 847
 				"AttachStdout":false,
848 848
 				"AttachStderr":false,
849
-				"PortSpecs":null,
849
+				"ExposedPorts":{},
850 850
 				"Tty":true,
851 851
 				"OpenStdin":true,
852 852
 				"StdinOnce":false,
... ...
@@ -1192,7 +1195,7 @@ Create a new image from a container's changes
1192 1192
        
1193 1193
        {
1194 1194
            "Cmd": ["cat", "/world"],
1195
-           "PortSpecs":["22"]
1195
+           "ExposedPorts":{"22/tcp":{}}
1196 1196
        }
1197 1197
 
1198 1198
     **Example response**: