| 用途 | 供应链元数据 |
|---|---|
| 构建参数 | --provenance=true / --sbom=true |
| 查看方式 | docker buildx imagetools inspect 远端镜像 |
示例
示例
docker buildx build --provenance=true --sbom=true \
--push -t registry.example.com/team/app/web:1.4.2 .
docker buildx imagetools inspect registry.example.com/team/app/web:1.4.2溯源与 SBOM 以 attestation 形式附着在镜像索引上,推送到支持 attestation 的仓库后才能完整保留与查看。