浏览代码

Merge pull request #2991 from fortybillion/patch-1

API documentation: added format of Volumes and Binds parameters to "create" and "start"
Andy Rothfusz 11 年之前
父节点
当前提交
94d46a8d3a
共有 1 个文件被更改,包括 8 次插入2 次删除
  1. 8 2
      docs/sources/api/docker_remote_api_v1.7.rst

+ 8 - 2
docs/sources/api/docker_remote_api_v1.7.rst

@@ -132,7 +132,9 @@ Create a container
 		],
 		],
 		"Dns":null,
 		"Dns":null,
 		"Image":"base",
 		"Image":"base",
-		"Volumes":{},
+		"Volumes":{
+			"/tmp": {}
+		},
 		"VolumesFrom":"",
 		"VolumesFrom":"",
 		"WorkingDir":""
 		"WorkingDir":""
 
 
@@ -361,8 +363,12 @@ Start a container
 
 
            {
            {
                 "Binds":["/tmp:/tmp"],
                 "Binds":["/tmp:/tmp"],
-                "LxcConf":{"lxc.utsname":"docker"}
+                "LxcConf":{"lxc.utsname":"docker"},
+                "PortBindings":null
+                "PublishAllPorts":false
            }
            }
+           
+        Binds need to reference Volumes that were defined during container creation.
 
 
         **Example response**:
         **Example response**: