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
- id: C1 claim: Build attestations describe how an image was built and what it contains. source: S1 evidence: "Build attestations describe how an image was built, and what it contains."
- id: C2 claim: Two kinds are available: SBOM and provenance. source: S2 evidence: "Two types of build attestations are available:"
- id: C3 claim: Provenance attestations at mode=min are added to images by default. source: S1 evidence: "Provenance attestations with the mode=min level are added to images by default."
Sources
- [S1] Build attestations. Docker, Inc.. https://docs.docker.com/build/metadata/attestations/ . License: Apache License 2.0. Accessed 2026-11-27.
- [S2] Build attestations (source). Docker, Inc.. https://raw.githubusercontent.com/docker/docs/main/content/manuals/build/metadata/attestations/_index.md . License: Apache License 2.0. Accessed 2026-11-27.
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
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.},
}
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.
- docker-build-attestations.schema.json (schema; CC-BY-4.0)
- docker-build-attestations.table.json (table; CC-BY-4.0)
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.