From 8c646ebf16bd0e2618cbca430bc129ee7416a21c Mon Sep 17 00:00:00 2001 From: cpuguy83 Date: Thu, 5 Jun 2014 09:50:27 -0400 Subject: [PATCH] Fixes incorrect API spec for items moved to HostConfig DNS and VolumesFrom were moved to HostConfig and as such are part of the container start and not create. For some reason 0.10 docs are correct (except for a missing quote in the JSON") but 0.11 and latest are not. Docker-DCO-1.1-Signed-off-by: cpuguy83 (github: cpuguy83) --- docs/sources/reference/api/docker_remote_api_v1.10.md | 2 +- docs/sources/reference/api/docker_remote_api_v1.11.md | 5 +++-- docs/sources/reference/api/docker_remote_api_v1.12.md | 6 +++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/sources/reference/api/docker_remote_api_v1.10.md b/docs/sources/reference/api/docker_remote_api_v1.10.md index 8676833af9..9c39611b34 100644 --- a/docs/sources/reference/api/docker_remote_api_v1.10.md +++ b/docs/sources/reference/api/docker_remote_api_v1.10.md @@ -371,7 +371,7 @@ Start the container `id` "PublishAllPorts":false, "Privileged":false "Dns": ["8.8.8.8"], - "VolumesFrom: ["parent", "other:ro"] + "VolumesFrom": ["parent", "other:ro"] } **Example response**: diff --git a/docs/sources/reference/api/docker_remote_api_v1.11.md b/docs/sources/reference/api/docker_remote_api_v1.11.md index e72545b6f9..f639557e13 100644 --- a/docs/sources/reference/api/docker_remote_api_v1.11.md +++ b/docs/sources/reference/api/docker_remote_api_v1.11.md @@ -123,7 +123,6 @@ Create a container "Cmd":[ "date" ], - "Dns":null, "Image":"base", "Volumes":{ "/tmp": {} @@ -410,7 +409,9 @@ Start the container `id` "LxcConf":{"lxc.utsname":"docker"}, "PortBindings":{ "22/tcp": [{ "HostPort": "11022" }] }, "PublishAllPorts":false, - "Privileged":false + "Privileged":false, + "Dns": ["8.8.8.8"], + "VolumesFrom": ["parent", "other:ro"] } **Example response**: diff --git a/docs/sources/reference/api/docker_remote_api_v1.12.md b/docs/sources/reference/api/docker_remote_api_v1.12.md index d941a1d45f..08a06a45d4 100644 --- a/docs/sources/reference/api/docker_remote_api_v1.12.md +++ b/docs/sources/reference/api/docker_remote_api_v1.12.md @@ -124,12 +124,10 @@ Create a container "Cmd":[ "date" ], - "Dns":null, "Image":"base", "Volumes":{ "/tmp": {} }, - "VolumesFrom":"", "WorkingDir":"", "DisableNetwork": false, "ExposedPorts":{ @@ -411,7 +409,9 @@ Start the container `id` "LxcConf":{"lxc.utsname":"docker"}, "PortBindings":{ "22/tcp": [{ "HostPort": "11022" }] }, "PublishAllPorts":false, - "Privileged":false + "Privileged":false, + "Dns": ["8.8.8.8"], + "VolumesFrom": ["parent", "other:ro"] } **Example response**: