# Image Tag

> The label after the colon in an image name. It often names a version.

**Field:** Infrastructure  
**Category:** Containers  
**Also known as:** Docker Tag, Container Image Tag, latest Tag

## Think of it like

Think of it like a label on a jar. The label says which batch is inside.

## Definition

An image tag is the label after the colon in an image name, such as 1.27 in nginx:1.27. It usually names a version. If you leave the tag off, Docker uses latest. A tag can be moved to a newer image later, so the same name may not always give the same image. To pin one exact image, you use its digest, a long code made from its contents.

## Example

Emma's server runs postgres:17. Version 18 is out, but her server stays on 17 until she changes the tag herself.

## Example code

```bash
docker pull nginx:1.27
```

The part after the colon is the tag. Without it, Docker would pull nginx:latest instead.

## Why it matters

The tag decides what runs. Pinning a version stops a surprise update on the next pull.

## Common mistake

Using latest on a server. It means whatever was pushed last, so a restart can pull a different version.

## Three principles

- **After the colon.** name:tag, such as nginx:1.27.
- **Default is latest.** Used when no tag is given.
- **Tags can move.** A digest pins one exact image.

## Related terms

- [Container Image](https://learn.benibix.com/term/infrastructure/container-image)
- [Container Registry](https://learn.benibix.com/term/infrastructure/container-registry)
- [Docker Hub](https://learn.benibix.com/term/infrastructure/docker-hub)
- [Dockerfile](https://learn.benibix.com/term/infrastructure/dockerfile)
- [Semantic Versioning (SemVer)](https://learn.benibix.com/term/development/semantic-versioning)

![A stack of four layers. At the bottom the base image from the FROM line, then a layer of installed packages, then a layer of app code. A thin dashed writable layer sits on top for a running container. A label reading myapp:1.2 points at the stack.](https://learn.benibix.com/diagrams/inf4-image-layers.svg)

---

Source: https://learn.benibix.com/term/infrastructure/image-tag
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
