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

Merge pull request #2991 from fortybillion/patch-1

API documentation: added format of Volumes and Binds parameters to "create" and "start"
This commit is contained in:
Andy Rothfusz 2013-12-04 18:32:19 -08:00
commit 94d46a8d3a

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,9 +363,13 @@ 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**:
.. sourcecode:: http .. sourcecode:: http