← All notes

Docker build attestations: SBOM and provenance metadata on an image

Answer: Build attestations record how an image was built and what it contains, attached at build time as metadata.

Purpose and kinds

BuildKit creates the attestations at build time and attaches them to the final image as metadata.

They exist so you can inspect where an image comes from, who created it and how, and what it contains, which helps with supply chain decisions and policy engines.

Two kinds are available: a Software Bill of Material that lists artifacts the image contains or that were used to build it, and provenance that describes how the image was built.

Defaults, storage, and driver support

Provenance attestations at the mode=min level are added to images by default.

The records are wrapped in the in-toto JSON format and attached to the image index as a manifest.

You can adjust behavior with --provenance and --sbom, including --provenance=mode=max, --sbom=true, or --provenance=false. The BUILDX_NO_DEFAULT_ATTESTATIONS environment variable can also turn default provenance off.

Attestations attach to an image index. The classic image store does not support image indices, so it cannot hold an image with attestations.

The docker driver needs the containerd image store. The docker-container, kubernetes, and remote drivers support attestations.

Pushing with --push keeps the attestations. Loading with --load has the same image-store requirement. If you do not want to change store or driver, pass --provenance=false --sbom=false.

See also

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Docker, Inc., Build attestations; Docker, Inc., Build attestations (source). Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc. Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Docker, Inc., Build attestations; Docker, Inc., Build attestations (source). Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc.

Cite this

Permanent ID: iil:note:st06ga2v

iinventedlight. 2026. "Docker build attestations: SBOM and provenance metadata on an image." iinventedlight Library, iil:note:st06ga2v, version of 2026-11-27. https://iinventedlight.com/library/notes/docker-build-attestations/. License: CC-BY-4.0.

@misc{iil_note_st06ga2v,
  author = {{iinventedlight}},
  title = {{Docker build attestations: SBOM and provenance metadata on an image}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-27},
  url = {https://iinventedlight.com/library/notes/docker-build-attestations/},
  note = {Permanent ID iil:note:st06ga2v. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

Extra files beside this note

These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.

All artifact files (JSON index)

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/docker-build-attestations.md.