Interview Prep/Docker/Images, Layers & Storage Drivers

What is an image digest and how is it different from a tag?

BeginnerConceptImages, Layers & Storage Drivers
Answer

A tag is a mutable pointer (nginx:1.27); the registry owner can re-push it to different content. A digest (nginx@sha256:...) is the SHA-256 of the manifest and is immutable. Pull by digest for reproducibility.

docker pull nginx@sha256:<digest>
docker buildx imagetools inspect nginx:1.27 | head
All Docker questions Roadmap: Docker & containers

More on Images, Layers & Storage Drivers