فهرست منبع

Added format of Volumes and Binds parameters to create and start

* Added sample Volumes parameter to container create API.
* Added PortBindings and PublishAllPorts parameter to container start API
* Added note to container start about Binds needed to be declared as Volumes during container create.
Ben Sargent 11 سال پیش
والد
کامیت
b9ad0c9f74
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**: