|
...
|
...
|
@@ -1136,7 +1136,13 @@ Create a new image from a container's changes
|
|
1136
|
1136
|
|
|
1137
|
1137
|
.. sourcecode:: http
|
|
1138
|
1138
|
|
|
1139
|
|
- POST /commit?container=44c004db4b17&m=message&repo=myrepo HTTP/1.1
|
|
|
1139
|
+ POST /commit?container=44c004db4b17&m=message&repo=myrepo HTTP/1.1
|
|
|
1140
|
+ Content-Type: application/json
|
|
|
1141
|
+
|
|
|
1142
|
+ {
|
|
|
1143
|
+ "Cmd": ["cat", "/world"],
|
|
|
1144
|
+ "PortSpecs":["22"]
|
|
|
1145
|
+ }
|
|
1140
|
1146
|
|
|
1141
|
1147
|
**Example response**:
|
|
1142
|
1148
|
|
|
...
|
...
|
@@ -1152,7 +1158,6 @@ Create a new image from a container's changes
|
|
1152
|
1152
|
:query tag: tag
|
|
1153
|
1153
|
:query m: commit message
|
|
1154
|
1154
|
:query author: author (eg. "John Hannibal Smith <hannibal@a-team.com>")
|
|
1155
|
|
- :query run: config automatically applied when the image is run. (ex: {"Cmd": ["cat", "/world"], "PortSpecs":["22"]})
|
|
1156
|
1155
|
:statuscode 201: no error
|
|
1157
|
1156
|
:statuscode 404: no such container
|
|
1158
|
1157
|
:statuscode 500: server error
|