瀏覽代碼

Merge pull request #3340 from jamtur01/apiport

Fixed #3039 - Added clarification on port options in API
Andy Rothfusz 11 年之前
父節點
當前提交
c654aea4f2
共有 1 個文件被更改,包括 6 次插入4 次删除
  1. 6 4
      docs/sources/api/docker_remote_api_v1.7.rst

+ 6 - 4
docs/sources/api/docker_remote_api_v1.7.rst

@@ -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**: