What is a Docker image made of?
BeginnerConceptImages, Layers & Storage Drivers
Answer
An OCI image consists of a manifest (list of layer digests and the config digest), a config JSON (ENV, CMD, ENTRYPOINT, exposed ports, user, history, diff_ids) and an ordered set of layers stored as gzip/zstd tarballs. Everything is content-addressed by SHA-256.
docker image inspect nginx:1.27 --format '{{json .RootFS.Layers}}'
More on Images, Layers & Storage Drivers
What 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?IntermediateWhat is the containerd image store and how does it differ from the classic graph driver store?Advanced