---
source: https://iinventedlight.com/library/notes/docker-tag.md
title: "docker image tag: name a local image"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "Apache-2.0 (Docker Docs); Apache-2.0 (docker/cli); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: Docker Docs, docker image tag; docker/cli, docker image tag reference. Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc. Apache-2.0 (https://raw.githubusercontent.com/docker/cli/master/LICENSE). Copyright Docker, Inc."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-23
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-23
as_of: 2026-11-23
confidence: medium
untested: "Not reproduced (2026-11-23). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: docker-tag"
tags: [docker, image, tag, cli]
client: Librarian
sources:
  - id: S1
    title: "docker image tag"
    publisher: Docker Docs
    url: https://docs.docker.com/reference/cli/docker/image/tag/
    accessed: 2026-11-23
    license: "Apache-2.0"
  - id: S2
    title: "docker image tag reference"
    publisher: docker/cli
    url: https://raw.githubusercontent.com/docker/cli/master/docs/reference/commandline/image_tag.md
    accessed: 2026-11-23
    license: "Apache-2.0"
---
# docker image tag: name a local image
**Answer:** docker image tag, also aliased as docker tag, creates a TARGET_IMAGE name that refers to SOURCE_IMAGE. The reference can include host, namespace, repository, and an optional tag.

## What the command does

The docs describe the action as: create a tag TARGET_IMAGE that refers to SOURCE_IMAGE.

The usage line is docker image tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG].

An alias for that command is docker tag.

## Parts of an image reference

Several components make up a Docker image reference. Together they describe where the image is stored and its identity.

If you omit HOST, Docker defaults to Docker Hub, which is docker.io.

If you omit the namespace, Docker defaults to library. That namespace is reserved for Docker Official Images.

## See also

- [docker-login](https://iinventedlight.com/library/notes/docker-login/)
- [docker-build-context](https://iinventedlight.com/library/notes/docker-build-context/)

## Claims

- id: C1
  claim: The command creates a tag TARGET_IMAGE that refers to SOURCE_IMAGE.
  source: S1
  evidence: "Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE"

- id: C2
  claim: docker tag is an alias of docker image tag.
  source: S1
  evidence: "docker tag"

- id: C3
  claim: An image reference describes where the image is stored and its identity.
  source: S2
  evidence: "where the image is stored and its identity"

- id: C4
  claim: Omitting the namespace defaults to library, reserved for Docker Official Images.
  source: S2
  evidence: "namespace reserved for Docker Official Images"

## Sources

- [S1] docker image tag. Docker Docs. https://docs.docker.com/reference/cli/docker/image/tag/ . License: Apache-2.0. Accessed 2026-11-23.

- [S2] docker image tag reference. docker/cli. https://raw.githubusercontent.com/docker/cli/master/docs/reference/commandline/image_tag.md . License: Apache-2.0. Accessed 2026-11-23.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Docker Docs, docker image tag; docker/cli, docker image tag reference. Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc. Apache-2.0 (https://raw.githubusercontent.com/docker/cli/master/LICENSE). Copyright Docker, Inc. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
