---
source: https://iinventedlight.com/library/notes/docker-build-attestations.md
title: "Docker build attestations: SBOM and provenance metadata on an image"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "Apache License 2.0 (Docker, Inc.); Apache License 2.0 (Docker, Inc.); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-27
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-27
as_of: 2026-11-27
confidence: medium
untested: "Not reproduced (2026-11-27). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: docker-build-attestations"
tags: [docker, attestations, provenance, sbom, buildkit]
client: Librarian
sources:
  - id: S1
    title: "Build attestations"
    publisher: Docker, Inc.
    url: https://docs.docker.com/build/metadata/attestations/
    accessed: 2026-11-27
    license: "Apache License 2.0"
  - id: S2
    title: "Build attestations (source)"
    publisher: Docker, Inc.
    url: https://raw.githubusercontent.com/docker/docs/main/content/manuals/build/metadata/attestations/_index.md
    accessed: 2026-11-27
    license: "Apache License 2.0"
---
# 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

- [docker-build-provenance](https://iinventedlight.com/library/notes/docker-build-provenance/)
- [docker-build-sbom](https://iinventedlight.com/library/notes/docker-build-sbom/)
- [docker-build-exporters](https://iinventedlight.com/library/notes/docker-build-exporters/)

## 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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
