Docker image tags, IDs and digests
Quick answer
A tag is a reusable name for image content. A digest identifies content by its cryptographic hash. A local image ID identifies image configuration; it is not generally the registry manifest digest.
How it works
busybox:1.37 selects a version label, but its publisher may update what the label points to. Omitting a tag typically selects latest, which is just another tag. A reference of the form repository@sha256:... pins a manifest or image index; the dots here describe syntax, not a usable digest. An index may select distinct images for different platforms, so record the target platform too.
Lab prerequisites
Use only a disposable approved Linux-container Docker context. Confirm the active context with docker context show before any mutation. The instructor must preload and review busybox:1.37 for the target platform and record its digest. The tag is a fixture convention inherited from earlier chapters, not a verified immutable version. Commands are static examples, not executed by ByteMind. Before any engine request, confirm the effective approved daemon endpoint, including DOCKER_HOST, DOCKER_CONTEXT and CLI overrides; do this privately in each terminal. Confirm the local tag still resolves to the approved image identity and platform. If any check fails, use the paper exercise instead.
Command example
docker image inspect --format '{{.Id}}' busybox:1.37docker image inspect --format '{{json .RepoDigests}}' busybox:1.37The first line reports the local ID; the second reports recorded repository digest references, if present. Locally built or imported images may lack repository digests. Do not substitute the ID when a registry digest is required. An empty digest list is missing evidence, not proof of an invalid image. Record the approved manifest or index digest, selected platform and local ID separately.
Common mistakes
Pinning a digest does not patch vulnerabilities or prove who published the image. Review provenance and updates separately.
Manual practice
Record the local ID and any repository digests. Explain what you would need to record to repeat the same platform-specific deployment.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Docker image tags, IDs and digests — Knowledge check
Apply the concepts from this lesson.
What does `latest` guarantee?
Which identifier pins registry content?
Why record platform for an image index?