---
title: "Create an image from a container"
method: POST
path: "/commit"
---

# Create an image from a container

`POST /commit`

## Request body

- ContainerCommitOptions — options of committing a container into an image
  - `Repository` string — repository is the image name
  - `Tag` string — tag is the image tag
  - `Comment` string — comment is external information add for the image
  - `Author` string — author is the one build the image

## Response `201`

The image was created successfully

- ContainerCommitResp — response of commit container for the remote API: POST /commit
  - `Id` string — ID uniquely identifies an image committed by a container

## Other responses

- `404` — An unexpected 404 error occurred.
- `500` — An unexpected server error occurred.

## Changes

- **2018-10-08** `4f8568e086ec` — 1 info
  - added the non-success response with the status `500`
- **2018-08-13** `b454bf84135c` — 1 info
  - endpoint added
- **2018-08-03** `5ae9c809fadb` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/aliyun/apis/pouch-engine-api/changes/commit/post.md)

---

[API](https://skmtc.dev/aliyun/apis/pouch-engine-api.md) · [All operations](https://skmtc.dev/aliyun/apis/pouch-engine-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/aliyun/pouch-engine-api/revisions/36d75b2825fc/schema)
