Add descriptions and examples for buildx history commands

Signed-off-by: sarahsanders-docker <sarah.sanders@docker.com>
This commit is contained in:
sarahsanders-docker
2025-04-17 14:50:58 -04:00
committed by Tonis Tiigi
parent 9a48aca461
commit 4dac5295a1
9 changed files with 237 additions and 0 deletions

View File

@@ -15,3 +15,24 @@ Inspect a build attachment
<!---MARKER_GEN_END-->
## Description
Inspect a specific attachment from a build record, such as a provenance file or
SBOM. Attachments are optional artifacts stored with the build and may be
platform-specific.
## Examples
### Inspect a provenance attachment from a build
```console
docker buildx history inspect attachment mybuild --type https://slsa.dev/provenance/v0.2
```
### Inspect a SBOM for linux/amd64
```console
docker buildx history inspect attachment mybuild \
--type application/vnd.cyclonedx+json \
--platform linux/amd64
```