Cloud Native › Container

Docker Engine 29 containerd image store, OCI layers, and SBOMs

Verify Docker Engine 29's containerd image store, local multi-platform OCI indexes, lazy unpacking disk usage, SPDX SBOMs, and overlay2 migration caveats.

Docker Engine 29 containerd image store, OCI layers, and SBOMs

Fresh installs of Docker Engine 29 enable the containerd image store by default, letting you keep multi-platform OCI indexes, SBOMs, and provenance attestations under a single local tag without pushing to a registry. On Docker Engine 29.9.3, I measured how dual storage and lazy unpacking change local disk usage and extracted SPDX 2.3 SBOMs directly from docker save.

All commands and measurements below come from macOS (darwin/arm64) running Docker Desktop 4.100.1, Docker Engine 29.9.3 (linux/arm64), containerd v2.4.2, and buildx v0.38.1 (BuildKit v0.34.2).

Checking containerd image store status and architecture

The legacy overlay2 graphdriver stored unpacked filesystem layers and a single platform manifest per tag. When the containerd image store is enabled, Docker separates compressed OCI artifacts from unpacked runtime filesystems.

Check whether your daemon runs on the containerd image store with docker info:

1
docker info | grep -E "Server Version|Storage Driver|driver-type"
1
2
3
 Server Version: 29.9.3
 Storage Driver: overlayfs
  driver-type: io.containerd.snapshotter.v1

Seeing Storage Driver: overlayfs alongside driver-type: io.containerd.snapshotter.v1 confirms the containerd backend is active instead of overlay2. Under this layout, images flow through two storage layers:

flowchart TD
    A["buildx --load"] --> B["containerd Store"]
    B --> C["Content Store (Blobs & SBOMs)"]
    B --> D["Overlayfs Snapshotter"]
    C -.->|"Unpack on Run"| D
    D --> E["Container Rootfs"]
  • Content store: Keeps compressed OCI layer blobs, multi-platform OCI Image Indexes, and attestation manifests (SBOM and provenance) verbatim.
  • Overlayfs snapshotter: Unpacks compressed layers into writable-ready filesystem snapshots only for platforms you actually run.

This split makes local multi-platform and supply-chain workflows possible, but it also means compressed blobs and unpacked snapshots occupy disk space at the same time.

Building local multi-platform OCI indexes with attestations

With the legacy overlay2 backend, building multi-architecture images with Docker Buildx required a docker-container builder and --push to a remote registry because --load rejected multi-platform indexes.

With the containerd image store, the default docker driver loads a multi-platform index and its attestations straight into the local store. Start with a minimal Dockerfile that prints the container architecture:

1
2
3
4
5
6
# /tmp/cn-exp-d12/Dockerfile
FROM alpine:3.21
RUN apk add --no-cache curl \
    && mkdir -p /app \
    && echo "hello from containerd image store ($(uname -m))" > /app/info.txt
CMD ["cat", "/app/info.txt"]

Build for both linux/amd64 and linux/arm64 with SBOM and minimal provenance enabled:

1
2
3
4
5
6
7
docker buildx build \
  --platform linux/amd64,linux/arm64 \
  --sbom=true \
  --provenance=mode=min \
  -t cn-d12-demo:1.0 \
  --load \
  /tmp/cn-exp-d12

BuildKit pulled docker/buildkit-syft-scanner:stable-1 automatically and completed the local load in 6.6 seconds. Inspect the stored tree with docker image ls --tree:

1
docker image ls --tree cn-d12-demo:1.0
1
2
3
4
IMAGE                ID             DISK USAGE   CONTENT SIZE   EXTRA
cn-d12-demo:1.0      3cdac7abb5c1       26.5MB         12.5MB
├─ linux/amd64       4c430904713e       5.94MB         5.94MB
└─ linux/arm64       ba0e1b68c736       20.3MB         6.28MB

Both linux/amd64 and linux/arm64 now sit under cn-d12-demo:1.0. One UI quirk stands out in Docker 29.9.3: docker image ls --tree (experimental) only renders runnable platform entries and hides unknown/unknown attestation manifests.

You can still spot those hidden attestations in the numbers. The top-level CONTENT SIZE (12.5MB) exceeds the sum of the two platforms (5.94MB + 6.28MB = 12.22MB) by roughly 0.24MB, which accounts for the OCI Image Index and the two attestation manifests.

Attestations also change the top-level descriptor of a single-platform image. Comparing two linux/arm64 builds from the same Dockerfile makes this clear:

1
2
3
docker buildx build --platform linux/arm64 --sbom=false --provenance=false -t cn-d12-single:1.0 --load /tmp/cn-exp-d12
docker buildx build --platform linux/arm64 --sbom=true --provenance=mode=min -t cn-d12-single-att:1.0 --load /tmp/cn-exp-d12
docker image ls --tree "cn-d12-single*"
1
2
3
4
5
6
IMAGE                   ID             DISK USAGE   CONTENT SIZE   EXTRA
cn-d12-single-att:1.0   fbd2a52f5f53       20.4MB          6.4MB
└─ linux/arm64          ba0e1b68c736       20.3MB         6.28MB

cn-d12-single:1.0       ba0e1b68c736       20.3MB         6.28MB
└─ linux/arm64          ba0e1b68c736       20.3MB         6.28MB
  • cn-d12-single:1.0 (--sbom=false --provenance=false) stores a plain application/vnd.oci.image.manifest.v1+json (ba0e1b68c736).
  • cn-d12-single-att:1.0 (--sbom=true --provenance=mode=min) wraps the manifest and its attestation in an application/vnd.oci.image.index.v1+json (fbd2a52f5f53).

Measuring dual storage and lazy unpacking

Right after the multi-platform build on the linux/arm64 host, linux/amd64 showed DISK USAGE 5.94MB and CONTENT SIZE 5.94MB. Meanwhile, the host platform linux/arm64 already used 20.3MB of disk for 6.28MB of compressed content—about 3.2x the compressed size.

This difference comes from lazy unpacking. Containerd keeps non-host platforms as compressed blobs until you actually run a container for that architecture. Running both platforms once triggers unpacking for linux/amd64:

1
2
3
docker run --rm --name cn-d12-arm64 cn-d12-demo:1.0
docker run --rm --name cn-d12-amd64 --platform linux/amd64 cn-d12-demo:1.0
docker image ls --tree cn-d12-demo:1.0
1
2
3
4
5
6
7
hello from containerd image store (aarch64)
hello from containerd image store (x86_64)

IMAGE                ID             DISK USAGE   CONTENT SIZE   EXTRA
cn-d12-demo:1.0      3cdac7abb5c1         40MB         12.5MB
├─ linux/amd64       4c430904713e       19.5MB         5.94MB
└─ linux/arm64       ba0e1b68c736       20.3MB         6.28MB

After running linux/amd64, its DISK USAGE jumped from 5.94MB to 19.5MB (+13.52MB), pushing the total image footprint from 26.5MB to 40MB while CONTENT SIZE stayed at 12.5MB.

Breaking down the exact byte counts shows how DISK USAGE equals compressed blobs plus unpacked snapshots:

ComponentCompressed Content Blob (CONTENT SIZE)Unpacked Snapshot (after run)Total (DISK USAGE)
linux/amd64 (manifest + config + 2 layers)5,937,890 B (5.94 MB)0 B → 13,520,896 B (13.52 MB)5.94 MB → 19.5 MB
linux/arm64 (manifest + config + 2 layers)6,283,955 B (6.28 MB)13,991,936 B (13.99 MB)20.3 MB
OCI Image Index + 2 Attestations (SBOM + Provenance)240,470 B (0.24 MB)0 B (not unpacked)0.24 MB
Total (cn-d12-demo:1.0)12,462,315 B (12.5 MB)13.99 MB → 27.51 MB26.5 MB → 40 MB

These numbers reflect a minimal alpine:3.21 plus curl image; the expansion ratio varies with layer compression and file composition in production images.

Inspecting OCI Image Layout, SPDX SBOM, and SLSA provenance

A common trap with local-only tags is running docker buildx imagetools inspect or docker manifest inspect. Both commands query a remote registry, so they exit with status 1 (pull access denied or unauthorized) when the tag only exists locally.

For local images, use docker image inspect --platform for per-platform metadata, and export the full OCI Image Layout with docker save to inspect the index and attestations:

1
2
3
4
5
6
7
docker image inspect --platform linux/amd64 cn-d12-demo:1.0 \
  --format 'Arch={{.Architecture}} Size={{.Size}}'

mkdir -p /tmp/cn-exp-d12/oci-export
docker save cn-d12-demo:1.0 -o /tmp/cn-exp-d12/cn-d12-demo.tar
tar -xf /tmp/cn-exp-d12/cn-d12-demo.tar -C /tmp/cn-exp-d12/oci-export
ls -la /tmp/cn-exp-d12/oci-export

The archive contains a standard OCI Image Layout (oci-layout, index.json, and 16 files under blobs/sha256/) alongside a legacy-compatible manifest.json. Opening the OCI Image Index referenced by index.json (blobs/sha256/3cdac7abb5c1...) exposes the two unknown/unknown attestation manifests that --tree omitted:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
  "schemaVersion": 2,
  "mediaType": "application/vnd.oci.image.index.v1+json",
  "manifests": [
    {
      "mediaType": "application/vnd.oci.image.manifest.v1+json",
      "digest": "sha256:4c430904713e186a3a0687be605e50c83baa7335cdebc9430867cbaf83fbc026",
      "size": 673,
      "platform": { "architecture": "amd64", "os": "linux" }
    },
    {
      "mediaType": "application/vnd.oci.image.manifest.v1+json",
      "digest": "sha256:ba0e1b68c736347f2c655e281893c9c181bd3feda13fec4c9b6412cd198ffb6a",
      "size": 673,
      "platform": { "architecture": "arm64", "os": "linux" }
    },
    {
      "mediaType": "application/vnd.oci.image.manifest.v1+json",
      "digest": "sha256:b7cd1e6b84a40cdc94799eac710ea142adfbaf88ce41c90d177f166a230c4f15",
      "size": 1109,
      "annotations": {
        "vnd.docker.reference.digest": "sha256:4c430904713e186a3a0687be605e50c83baa7335cdebc9430867cbaf83fbc026",
        "vnd.docker.reference.type": "attestation-manifest"
      },
      "platform": { "architecture": "unknown", "os": "unknown" }
    },
    {
      "mediaType": "application/vnd.oci.image.manifest.v1+json",
      "digest": "sha256:37658fd381965eb1789dfe8edb704608536e6ebe0d80a7f159d9e27ed8b11123",
      "size": 1109,
      "annotations": {
        "vnd.docker.reference.digest": "sha256:ba0e1b68c736347f2c655e281893c9c181bd3feda13fec4c9b6412cd198ffb6a",
        "vnd.docker.reference.type": "attestation-manifest"
      },
      "platform": { "architecture": "unknown", "os": "unknown" }
    }
  ]
}

Each attestation manifest holds two application/vnd.in-toto+json layers. The first layer (predicateType: https://spdx.dev/Document) stores an SPDX 2.3 SBOM generated by syft-v1.57.2. For linux/arm64, it listed 25 Alpine packages with architecture-specific purl and cpe23Type entries. The JSON below summarizes key metadata from the predicate object along with 5 representative packages:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
  "_type": "https://in-toto.io/Statement/v1",
  "predicateType": "https://spdx.dev/Document",
  "subject": [
    {
      "name": "pkg:docker/cn-d12-demo@1.0?platform=linux%2Farm64",
      "digest": { "sha256": "ba0e1b68c736347f2c655e281893c9c181bd3feda13fec4c9b6412cd198ffb6a" }
    }
  ],
  "spdxVersion": "SPDX-2.3",
  "creationInfo": {
    "creators": [
      "Organization: Anchore, Inc",
      "Tool: syft-v1.57.2",
      "Tool: buildkit-v0.34.2"
    ]
  },
  "samplePackages": [
    { "name": "alpine-baselayout", "versionInfo": "3.6.8-r1", "purl": "pkg:apk/alpine/alpine-baselayout@3.6.8-r1?arch=aarch64&distro=alpine-3.21.10" },
    { "name": "busybox", "versionInfo": "1.37.0-r14" },
    { "name": "musl", "versionInfo": "1.2.5-r12", "purl": "pkg:apk/alpine/musl@1.2.5-r12?arch=aarch64&distro=alpine-3.21.10" },
    { "name": "curl", "versionInfo": "8.14.1-r3", "purl": "pkg:apk/alpine/curl@8.14.1-r3?arch=aarch64&distro=alpine-3.21.10" },
    { "name": "libcurl", "versionInfo": "8.14.1-r3" }
  ]
}

The second layer (predicateType: https://slsa.dev/provenance/v1) holds SLSA v1 Provenance, recording the exact base image digest (alpine:3.21) and build environment (dockerfileVersion: 1.28.0):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
  "_type": "https://in-toto.io/Statement/v1",
  "predicateType": "https://slsa.dev/provenance/v1",
  "predicate": {
    "buildDefinition": {
      "buildType": "https://github.com/moby/buildkit/blob/master/docs/attestations/slsa-definitions.md",
      "resolvedDependencies": [
        {
          "uri": "pkg:docker/alpine@3.21?platform=linux%2Farm64",
          "digest": { "sha256": "bc21487101ae47172509130ee1092cc273a831968d64b617776d1f69c81e42ab" }
        }
      ],
      "internalParameters": {
        "builderPlatform": "linux/arm64",
        "dockerfileVersion": "1.28.0",
        "targetPlatform": "linux/arm64"
      }
    }
  }
}

Embedding SBOM and provenance blobs inside the OCI artifact pairs naturally with security gates like non-root isolation and Trivy vulnerability scanning, giving downstream scanners a verifiable package inventory without sidecar metadata files.

Trade-offs against overlay2 and Engine 29 migration caveats

Here is how the legacy overlay2 graphdriver compares with the containerd image store:

DimensionLegacy overlay2 graphdrivercontainerd image store (overlayfs)
Local multi-platform --loadUnsupported (single platform only; requires --push)Supported (keeps OCI Image Index under one tag)
Local SBOM & provenanceDropped on local loadPreserved in the Content Store as in-toto blobs
Disk layoutUnpacked layers onlyCompressed Content Blobs + Unpacked Snapshots
Non-host platform unpackingNot applicableLazy unpacking (unpacked only on first run)
docker save archive formatLegacy Docker tar (manifest.json)Standard OCI Image Layout (oci-layout, index.json, blobs/)

Switching immediately isn’t always the right call. On disk-constrained VPS nodes or ephemeral CI runners, dual storage increases per-image disk footprint compared to overlay2. You should also hold off if legacy backup or monitoring scripts read /var/lib/docker/overlay2 paths directly, because those internal paths change under the containerd snapshotter.

Fresh install vs. upgrade defaults and storage isolation (official docs) Because Docker Desktop already ran with the containerd image store enabled, I did not execute a live overlay2 migration on this host. Per the Docker Engine 29 documentation, fresh Engine 29.0 installs enable the containerd image store by default, whereas upgrades from existing overlay2 hosts keep overlay2 for compatibility.

If you opt in manually on an existing Linux server by adding {"features": {"containerd-snapshotter": true}} to /etc/docker/daemon.json, Docker switches to a separate store—existing overlay2 images and containers disappear from docker ps and docker images until you either recreate them or revert the setting. Plan image redeployment and volume backups before flipping that flag in production.

Summary and checklist

The containerd image store brings local Docker workflows in line with OCI indexes and supply-chain attestations at the cost of dual-storage disk overhead. Before adopting it on CI runners or production hosts, run through these checks:

  • Confirm the active backend with docker info (Storage Driver: overlayfs and driver-type: io.containerd.snapshotter.v1).
  • Use docker image inspect --platform and docker save rather than imagetools inspect when inspecting unpushed local tags.
  • Budget local disk space for both compressed content blobs and unpacked snapshots, and schedule regular docker image prune cleanup.
  • Schedule a maintenance window and rollback plan before enabling containerd-snapshotter in daemon.json on existing overlay2 servers.
Learn about the containerd image store
Learn about the new features, bug fixes, and breaking changes for Docker Engine
Introduction to SBOM and provenance attestations with Docker Build, what they are, and why they exist
This post is licensed under CC BY 4.0 by the author.