1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

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.
This commit is contained in:
Ben Sargent 2013-12-02 16:52:12 +00:00
parent c4548506c5
commit b9ad0c9f74

View file

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