mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Doesn't use a query parameter, uses POST body
This commit is contained in:
parent
4947f61c20
commit
70c976de03
1 changed files with 7 additions and 2 deletions
|
@ -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 <hannibal@a-team.com>")
|
||||
: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
|
||||
|
|
Loading…
Add table
Reference in a new issue