docker buildx build --sbom true -t myapp .

Category: Docker

docker buildx build --sbom true -t myapp .

Attach an SBOM to the built image

SBOM = Software Bill of Materials, a machine-readable inventory of packages inside the image. Stored as an attestation alongside the image and readable with docker scout sbom. Requires a builder that supports attestations, such as the docker-container driver.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.