What is the difference between image ID, image digest and layer diff ID?
AdvancedConceptImages, Layers & Storage Drivers
Answer
- Image ID: SHA-256 of the image config JSON (what
docker imagesshows). - Digest (
RepoDigests): SHA-256 of the manifest, as the registry knows it; differs per registry because compression affects it. - diff ID: SHA-256 of the uncompressed layer tar, listed in
RootFS.Layers. The compressed blob digest in the manifest is different.
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