Skip to content

Commit

Permalink
build: clarify default image store limitation
Browse files Browse the repository at this point in the history
Signed-off-by: David Karlsson <[email protected]>
  • Loading branch information
dvdksn committed Nov 7, 2023
1 parent 909e02b commit c44a79e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions content/build/attestations/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,19 @@ You can opt in to add either the SBOM or provenance attestation type, or both.
$ docker buildx build --sbom=true --provenance=true .
```

> **Note**
>
> The default image store doesn't support attestations. If you're using the
> default image store and you build an image using the default `docker` driver,
> or using a different driver with the `--load` flag, the attestations are
> lost.
>
> To make sure the attestations are preserved, you can:
>
> - Use a `docker-container` driver with the `--push` flag to push the image to
> a registry directly.
> - Enable the [containerd image store](../../desktop/containerd/_index.md).
> **Note**
>
> Provenance attestations are enabled by default, with the `mode=min` option.
Expand Down

0 comments on commit c44a79e

Please sign in to comment.