Skip to content

Commit 6fbb0e5

Browse files
authored
fix(docs): instructions for SBOMs inspection (#342)
Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
1 parent 15b9d07 commit 6fbb0e5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,12 @@ ensure transparency and traceability:
205205
Metadata detailing how the image was built, following the [SLSA Provenance](https://slsa.dev)
206206
framework.
207207

208-
For example, you can retrieve the SBOM for a specific image using the following
209-
command:
208+
For example, to retrieve the SBOM of a multi-architecture image for a specific
209+
platform (e.g. `linux/amd64`), you can use the following command:
210210

211211
```bash
212-
docker buildx imagetools inspect <IMAGE> --format "{{ json .SBOM.SPDX }}"
212+
docker buildx imagetools inspect <IMAGE> \
213+
--format '{{ json (index .SBOM "linux/amd64").SPDX }}'
213214
```
214215

215216
This command outputs the SBOM in JSON format, providing a detailed view of the

0 commit comments

Comments
 (0)