---
title: "Tag an image"
method: POST
path: "/images/{name}/tag"
tags: ["Image"]
---

# Tag an image

`POST /images/{name}/tag`

Create a tag that refers to a source image.

This creates an additional reference (tag) to the source image. The tag
can include a different repository name and/or tag. If the repository
or tag already exists, it will be overwritten.

## Path parameters

- `name` string, required

## Query parameters

- `repo` string
- `tag` string

## Response `201`

No error

## Other responses

- `400` — Bad parameter
- `404` — No such image
- `409` — Conflict
- `500` — Server error

---

[API](https://skmtc.net/moby/apis/docker-engine-api.md) · [All operations](https://skmtc.net/moby/apis/docker-engine-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/moby/docker-engine-api/versions/4752769870da/schema)
