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
More on Images, Layers & Storage Drivers
What is a Docker image made of?BeginnerWhat is a layer and when is one created?BeginnerWhat is a union filesystem / OverlayFS?IntermediateWhat is copy-on-write (CoW) in containers?IntermediateWhy does deleting a file in a later `RUN` not shrink the image?IntermediateWhat storage drivers does Docker support and which is default?Intermediate