Create a new image from a container
/v1.33
/v1.33
/v1.33
/v1.33
POST
/commit
Image
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/v1.33/commit' \
--header 'Content-Type: application/json' \
--data-raw '{
"ArgsEscaped": true,
"AttachStderr": true,
"AttachStdin": false,
"AttachStdout": true,
"Cmd": [
null
],
"Domainname": "string",
"Entrypoint": [
null
],
"Env": [
"string"
],
"ExposedPorts": {
"property1": {},
"property2": {}
},
"Healthcheck": {
"Interval": 0,
"Retries": 0,
"StartPeriod": 0,
"Test": [
"string"
],
"Timeout": 0
},
"Hostname": "string",
"Image": "string",
"Labels": {
"property1": "string",
"property2": "string"
},
"MacAddress": "string",
"NetworkDisabled": true,
"OnBuild": [
"string"
],
"OpenStdin": false,
"Shell": [
"string"
],
"StdinOnce": false,
"StopSignal": "SIGTERM",
"StopTimeout": 10,
"Tty": false,
"User": "string",
"Volumes": {
"additionalProperties": {}
},
"WorkingDir": "string"
}'
Response Response Example
201 - Example 1
{
"Id": "string"
}
Request
Query Params
container
stringÂ
optional
repo
stringÂ
optional
tag
stringÂ
optional
comment
stringÂ
optional
author
stringÂ
optional
John Hannibal Smith <hannibal@a-team.com>
)pause
stringÂ
optional
changes
stringÂ
optional
Dockerfile
instructions to apply while committingBody Params application/json
Responses
Modified at 2022-09-10 17:56:06