---
title: "Create an image"
method: POST
path: "/images/create"
tags: ["Image"]
---

# Create an image

`POST /images/create`

Create an image by either pulling it from a registry or importing it.

## Query parameters

- `fromImage` string
- `fromSrc` string
- `repo` string
- `tag` string
- `message` string
- `changes` string[]
- `platform` string

## Headers

- `X-Registry-Auth` string

## Response `200`

no error

## Other responses

- `404` — repository does not exist or no read access
- `500` — server error

## Changes

- **2026-07-17** `04bb09da9ccb` — 1 info
  - added the new optional `query` request parameter `changes`
- **2022-11-14** `9909ec2e0c0e` — 1 warning
  - deleted the `query` request parameter `changes`

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

---

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