Create a new image from a container
Changed onRequest
- Base URL/v1.57 (relative, and the document was published on a file host, not at the API’s origin)
- Authnone declared
Query parameters
The ID or name of the container to commit
Repository name for the created image
Tag name for the create image
Commit message
Author of the image (e.g., John Hannibal Smith <hannibal@a-team.com>)
Whether to pause the container before committing
Dockerfile instructions to apply while committing
Request body
Example request
{
"Hostname": "439f4e91bd1d",
"User": "123:456",
"ExposedPorts": {
"80/tcp": {},
"443/tcp": {}
},
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
],
"Cmd": [
"/bin/sh"
],
"Image": "example-image:1.0",
"WorkingDir": "/public/",
"Entrypoint": [],
"OnBuild": [],
"Labels": {
"com.example.some-label": "some-value",
"com.example.some-other-label": "some-other-value"
},
"StopSignal": "SIGTERM",
"Shell": [
"/bin/sh",
"-c"
]
}Response
no error
Changes
- breaking
removed the request body
- breaking
removed the success response with the status
- info
api tag
Imageadded - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the success response with the status
- breaking
- breaking
request body became required
- breaking
for the
queryrequest parameterpause, default valuetruewas removed - breaking
removed the enum value
{}of the request property/ - breaking
removed the enum value
{}of the request property/ - breaking
the
/request property format changed from no format toint32 - breaking
the
request property format changed from no format toint32 - breaking
removed the success response with the status
- info
api tag
Imageremoved - info
the
request property default value{}was removed - info
the
request property default value{}was removed - info
the
request property default valuefalsewas removed - info
the
request property default valuetruewas removed - info
the
request property default valuefalsewas removed - info
the
request property default valuetruewas removed - info
the
request property default valuefalsewas removed - info
the
request property default valuefalsewas removed - info
the
request property default value10was removed - info
the
request property default valuefalsewas removed - info
removed the non-success response with the status
- info
removed the non-success response with the status
- info
added the success response with the status
- breaking