From a7c955ab40c6463ee18f12c47bf4b2fbf98f0e1d Mon Sep 17 00:00:00 2001 From: Todd Lunter Date: Tue, 29 Oct 2013 10:17:12 -0400 Subject: [PATCH] Doesn't use a query parameter, uses POST body Upstream-commit: 70c976de03ae5b83952e7ddfadfc75e358c5bbef Component: engine --- .../engine/docs/sources/api/docker_remote_api_v1.6.rst | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/components/engine/docs/sources/api/docker_remote_api_v1.6.rst b/components/engine/docs/sources/api/docker_remote_api_v1.6.rst index 4d844c7a9a..703f7345d4 100644 --- a/components/engine/docs/sources/api/docker_remote_api_v1.6.rst +++ b/components/engine/docs/sources/api/docker_remote_api_v1.6.rst @@ -1136,7 +1136,13 @@ Create a new image from a container's changes .. sourcecode:: http - POST /commit?container=44c004db4b17&m=message&repo=myrepo HTTP/1.1 + POST /commit?container=44c004db4b17&m=message&repo=myrepo HTTP/1.1 + Content-Type: application/json + + { + "Cmd": ["cat", "/world"], + "PortSpecs":["22"] + } **Example response**: @@ -1152,7 +1158,6 @@ Create a new image from a container's changes :query tag: tag :query m: commit message :query author: author (eg. "John Hannibal Smith ") - :query run: config automatically applied when the image is run. (ex: {"Cmd": ["cat", "/world"], "PortSpecs":["22"]}) :statuscode 201: no error :statuscode 404: no such container :statuscode 500: server error