From b9ad0c9f742a3e48ad06770abb362048306c763e Mon Sep 17 00:00:00 2001 From: Ben Sargent Date: Mon, 2 Dec 2013 16:52:12 +0000 Subject: [PATCH] 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. --- docs/sources/api/docker_remote_api_v1.7.rst | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/sources/api/docker_remote_api_v1.7.rst b/docs/sources/api/docker_remote_api_v1.7.rst index 251b162250..1dccf889d7 100644 --- a/docs/sources/api/docker_remote_api_v1.7.rst +++ b/docs/sources/api/docker_remote_api_v1.7.rst @@ -132,7 +132,9 @@ Create a container ], "Dns":null, "Image":"base", - "Volumes":{}, + "Volumes":{ + "/tmp": {} + }, "VolumesFrom":"", "WorkingDir":"" @@ -361,8 +363,12 @@ Start a container { "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**: