mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-24 20:28:02 +08:00
Add descriptions and examples for buildx history commands
Signed-off-by: sarahsanders-docker <sarah.sanders@docker.com>
This commit is contained in:

committed by
Tonis Tiigi

parent
9a48aca461
commit
4dac5295a1
@@ -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
|
||||
```
|
||||
|
Reference in New Issue
Block a user