Commit bba1dd0 Andy Goldstein
committed Apr 28, 2014
1 parent 425b315 commit bba1dd0 Copy full SHA for bba1dd0
File tree 4 files changed +101
-7
lines changed
docs/sources/reference/api
4 files changed +101
-7
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ Andrew Munsell <andrew@wizardapps.net>
20
20
Andrews Medina <andrewsmedina@gmail.com>
21
21
Andy Chambers <anchambers@paypal.com>
22
22
andy diller <dillera@gmail.com>
23
+ Andy Goldstein <agoldste@redhat.com>
23
24
Andy Rothfusz <github@metaliveblog.com>
24
25
Andy Smith <github@anarkystic.com>
25
26
Anthony Bishopric <git@anthonybishopric.com>
Original file line number Diff line number Diff line change @@ -131,7 +131,6 @@ Create a container
131
131
"WorkingDir":"",
132
132
"DisableNetwork": false,
133
133
"ExposedPorts":{
134
- "DisableNetwork": false,
135
134
"22/tcp": {}
136
135
}
137
136
}
@@ -1132,6 +1131,33 @@ Create a new image from a container's changes
1132
1131
**Example request**:
1133
1132
1134
1133
POST /commit?container=44c004db4b17&m=message&repo=myrepo HTTP/1.1
1134
+ Content-Type: application/json
1135
+
1136
+ {
1137
+ "Hostname":"",
1138
+ "User":"",
1139
+ "Memory":0,
1140
+ "MemorySwap":0,
1141
+ "AttachStdin":false,
1142
+ "AttachStdout":true,
1143
+ "AttachStderr":true,
1144
+ "PortSpecs":null,
1145
+ "Tty":false,
1146
+ "OpenStdin":false,
1147
+ "StdinOnce":false,
1148
+ "Env":null,
1149
+ "Cmd":[
1150
+ "date"
1151
+ ],
1152
+ "Volumes":{
1153
+ "/tmp": {}
1154
+ },
1155
+ "WorkingDir":"",
1156
+ "DisableNetwork": false,
1157
+ "ExposedPorts":{
1158
+ "22/tcp": {}
1159
+ }
1160
+ }
1135
1161
1136
1162
**Example response**:
1137
1163
@@ -1140,6 +1166,13 @@ Create a new image from a container's changes
1140
1166
1141
1167
{"Id":"596069db4bf5"}
1142
1168
1169
+
1170
+ Json Parameters:
1171
+
1172
+
1173
+
1174
+ - **config** - the container's configuration
1175
+
1143
1176
Query Parameters:
1144
1177
1145
1178
@@ -1150,8 +1183,6 @@ Create a new image from a container's changes
1150
1183
- **m** – commit message
1151
1184
- **author** – author (eg. "John Hannibal Smith
1152
1185
<[hannibal@a-team.com](mailto:hannibal%40a-team.com)>")
1153
- - **run** – config automatically applied when the image is run.
1154
- (ex: {"Cmd": ["cat", "/world"], "PortSpecs":["22"]})
1155
1186
1156
1187
Status Codes:
1157
1188
Original file line number Diff line number Diff line change @@ -1135,6 +1135,33 @@ Create a new image from a container's changes
1135
1135
**Example request**:
1136
1136
1137
1137
POST /commit?container=44c004db4b17&m=message&repo=myrepo HTTP/1.1
1138
+ Content-Type: application/json
1139
+
1140
+ {
1141
+ "Hostname":"",
1142
+ "User":"",
1143
+ "Memory":0,
1144
+ "MemorySwap":0,
1145
+ "AttachStdin":false,
1146
+ "AttachStdout":true,
1147
+ "AttachStderr":true,
1148
+ "PortSpecs":null,
1149
+ "Tty":false,
1150
+ "OpenStdin":false,
1151
+ "StdinOnce":false,
1152
+ "Env":null,
1153
+ "Cmd":[
1154
+ "date"
1155
+ ],
1156
+ "Volumes":{
1157
+ "/tmp": {}
1158
+ },
1159
+ "WorkingDir":"",
1160
+ "DisableNetwork": false,
1161
+ "ExposedPorts":{
1162
+ "22/tcp": {}
1163
+ }
1164
+ }
1138
1165
1139
1166
**Example response**:
1140
1167
@@ -1143,6 +1170,12 @@ Create a new image from a container's changes
1143
1170
1144
1171
{"Id":"596069db4bf5"}
1145
1172
1173
+ Json Parameters:
1174
+
1175
+
1176
+
1177
+ - **config** - the container's configuration
1178
+
1146
1179
Query Parameters:
1147
1180
1148
1181
@@ -1153,8 +1186,6 @@ Create a new image from a container's changes
1153
1186
- **m** – commit message
1154
1187
- **author** – author (eg. "John Hannibal Smith
1155
1188
<[hannibal@a-team.com](mailto:hannibal%40a-team.com)>")
1156
- - **run** – config automatically applied when the image is run.
1157
- (ex: {"Cmd": ["cat", "/world"], "PortSpecs":["22"]})
1158
1189
1159
1190
Status Codes:
1160
1191
Original file line number Diff line number Diff line change @@ -1146,6 +1146,33 @@ Create a new image from a container's changes
1146
1146
**Example request**:
1147
1147
1148
1148
POST /commit?container=44c004db4b17&m=message&repo=myrepo HTTP/1.1
1149
+ Content-Type: application/json
1150
+
1151
+ {
1152
+ "Hostname":"",
1153
+ "User":"",
1154
+ "Memory":0,
1155
+ "MemorySwap":0,
1156
+ "AttachStdin":false,
1157
+ "AttachStdout":true,
1158
+ "AttachStderr":true,
1159
+ "PortSpecs":null,
1160
+ "Tty":false,
1161
+ "OpenStdin":false,
1162
+ "StdinOnce":false,
1163
+ "Env":null,
1164
+ "Cmd":[
1165
+ "date"
1166
+ ],
1167
+ "Volumes":{
1168
+ "/tmp": {}
1169
+ },
1170
+ "WorkingDir":"",
1171
+ "DisableNetwork": false,
1172
+ "ExposedPorts":{
1173
+ "22/tcp": {}
1174
+ }
1175
+ }
1149
1176
1150
1177
**Example response**:
1151
1178
@@ -1154,6 +1181,12 @@ Create a new image from a container's changes
1154
1181
1155
1182
{"Id":"596069db4bf5"}
1156
1183
1184
+ Json Parameters:
1185
+
1186
+
1187
+
1188
+ - **config** - the container's configuration
1189
+
1157
1190
Query Parameters:
1158
1191
1159
1192
@@ -1164,8 +1197,6 @@ Create a new image from a container's changes
1164
1197
- **m** – commit message
1165
1198
- **author** – author (eg. "John Hannibal Smith
1166
1199
<[hannibal@a-team.com](mailto:hannibal%40a-team.com)>")
1167
- - **run** – config automatically applied when the image is run.
1168
- (ex: {"Cmd": ["cat", "/world"], "PortSpecs":["22"]})
1169
1200
1170
1201
Status Codes:
1171
1202
You can’t perform that action at this time.
0 commit comments