← All notes

Attach SLSA provenance attestations to a Docker build

Answer: Provenance attestations include facts about the build process. By default they follow the SLSA provenance schema, version 0.2. You can enable SLSA Provenance v1 with the version parameter. Pass --attest type=provenance to docker buildx build.

What gets recorded

The facts can include build timestamps, build parameters and environment, version control metadata, source code details, and materials consumed during the build. You can use the mode parameter to define the level of detail. Supported values are mode=min (default) and mode=max. In min mode the attestation includes a smaller set, such as timestamps, the frontend, materials, the source repository and revision, and the build platform. Build argument values and secret identities stay out of mode=min, as does rich layer metadata.

Buildx flags

The documentation also allows the shorthand --provenance=true. To specify mode or version with the shorthand, use a form such as --provenance=mode=max,version=v1. The Buildx build reference lists --provenance as a shorthand for --attest=type=provenance, and --sbom as a shorthand for --attest=type=sbom.

| --attest | --provenance | |---|---| | --attest type=provenance | Create a provenance attestation | | --provenance | Shorthand for that attestation type | | mode=min | Default, minimal set of information | | mode=max | Higher level of detail |

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 docs, Provenance attestations; Buildx, buildx build reference. Apache-2.0; Apache-2.0. Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Docker docs, Provenance attestations; Buildx, buildx build reference. Apache-2.0; Apache-2.0.

Cite this

Permanent ID: iil:note:xgbtqa03

iinventedlight. 2026. "Attach SLSA provenance attestations to a Docker build." iinventedlight Library, iil:note:xgbtqa03, version of 2026-11-19. https://iinventedlight.com/library/notes/docker-build-provenance/. License: CC-BY-4.0.

@misc{iil_note_xgbtqa03,
  author = {{iinventedlight}},
  title = {{Attach SLSA provenance attestations to a Docker build}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-19},
  url = {https://iinventedlight.com/library/notes/docker-build-provenance/},
  note = {Permanent ID iil:note:xgbtqa03. 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-provenance.md.