docker dhi attestation get
| 内容説明 | Get attestation for a Docker Hardened Image |
|---|---|
| 利用方法 | docker dhi attestation get <image> <digest> |
内容説明
Get an attestation attached to a Docker Hardened Image.
Returns the in-toto statement extracted from the attestation referrer. The referrer digest must be provided to select which attestation to retrieve. Use 'docker dhi attestation list' to discover available attestation digests.
The image can be specified as:
- name:tag (e.g., nginx:1.27)
- namespace/name:tag (e.g., dhi/nginx:1.27)
- name@sha256:digest (e.g., nginx@sha256:abc123...)
Examples:
Get attestation by referrer digest
docker dhi attestation get dhi/nginx:1.27 sha256:abc123...
Save attestation to a file
docker dhi attestation get dhi/nginx:1.27 sha256:abc123... -o provenance.json
Extract only the predicate using jq
docker dhi attestation get dhi/nginx:1.27 sha256:abc123... | jq .predicate
オプション
| オプション | デフォルト | 内容説明 |
|---|---|---|
-o, --output | Write output to file instead of stdout |