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:
parent
c4548506c5
commit
b9ad0c9f74
1 changed files with 8 additions and 2 deletions
|
@ -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**:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue