---
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.

---

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