88 - docker buildx history inspect attachment
99clink :
1010 - docker_buildx_history_inspect_attachment.yaml
11+ options :
12+ - option : format
13+ value_type : string
14+ default_value : pretty
15+ description : Format the output
16+ details_url : ' #format'
17+ deprecated : false
18+ hidden : false
19+ experimental : false
20+ experimentalcli : false
21+ kubernetes : false
22+ swarm : false
1123inherited_options :
1224 - option : builder
1325 value_type : string
@@ -29,6 +41,99 @@ inherited_options:
2941 experimentalcli : false
3042 kubernetes : false
3143 swarm : false
44+ examples : |-
45+ ### Format the output (--format) {#format}
46+
47+ The formatting options (`--format`) pretty-prints the output to `pretty` (default),
48+ `json` or using a Go template.
49+
50+ ```console
51+ $ docker buildx history inspect
52+ Name: buildx (binaries)
53+ Context: .
54+ Dockerfile: Dockerfile
55+ VCS Repository: https://github.com/crazy-max/buildx.git
56+ VCS Revision: f15eaa1ee324ffbbab29605600d27a84cab86361
57+ Target: binaries
58+ Platforms: linux/amd64
59+ Keep Git Dir: true
60+
61+ Started: 2025-02-07 11:56:24
62+ Duration: 1m 1s
63+ Build Steps: 16/16 (25% cached)
64+
65+ Image Resolve Mode: local
66+
67+ Materials:
68+ URI DIGEST
69+ pkg:docker/docker/dockerfile@1 sha256:93bfd3b68c109427185cd78b4779fc82b484b0b7618e36d0f104d4d801e66d25
70+ pkg:docker/[email protected] ?platform=linux%2Famd64 sha256:2c49857f2295e89b23b28386e57e018a86620a8fede5003900f2d138ba9c4037 71+ pkg:docker/tonistiigi/[email protected] ?platform=linux%2Famd64 sha256:923441d7c25f1e2eb5789f82d987693c47b8ed987c4ab3b075d6ed2b5d6779a3 72+
73+ Attachments:
74+ DIGEST PLATFORM TYPE
75+ sha256:217329d2af959d4f02e3a96dcbe62bf100cab1feb8006a047ddfe51a5397f7e3 https://slsa.dev/provenance/v0.2
76+
77+ Print build logs: docker buildx history logs g9808bwrjrlkbhdamxklx660b
78+ ```
79+
80+ ```console
81+ $ docker buildx history inspect --format json
82+ {
83+ "Name": "buildx (binaries)",
84+ "Ref": "5w7vkqfi0rf59hw4hnmn627r9",
85+ "Context": ".",
86+ "Dockerfile": "Dockerfile",
87+ "VCSRepository": "https://github.com/crazy-max/buildx.git",
88+ "VCSRevision": "f15eaa1ee324ffbbab29605600d27a84cab86361",
89+ "Target": "binaries",
90+ "Platform": [
91+ "linux/amd64"
92+ ],
93+ "KeepGitDir": true,
94+ "StartedAt": "2025-02-07T12:01:05.75807272+01:00",
95+ "CompletedAt": "2025-02-07T12:02:07.991778875+01:00",
96+ "Duration": 62233706155,
97+ "Status": "completed",
98+ "NumCompletedSteps": 16,
99+ "NumTotalSteps": 16,
100+ "NumCachedSteps": 4,
101+ "Config": {
102+ "ImageResolveMode": "local"
103+ },
104+ "Materials": [
105+ {
106+ "URI": "pkg:docker/docker/dockerfile@1",
107+ "Digests": [
108+ "sha256:93bfd3b68c109427185cd78b4779fc82b484b0b7618e36d0f104d4d801e66d25"
109+ ]
110+ },
111+ {
112+ "URI": "pkg:docker/[email protected] ?platform=linux%2Famd64", 113+ "Digests": [
114+ "sha256:2c49857f2295e89b23b28386e57e018a86620a8fede5003900f2d138ba9c4037"
115+ ]
116+ },
117+ {
118+ "URI": "pkg:docker/tonistiigi/[email protected] ?platform=linux%2Famd64", 119+ "Digests": [
120+ "sha256:923441d7c25f1e2eb5789f82d987693c47b8ed987c4ab3b075d6ed2b5d6779a3"
121+ ]
122+ }
123+ ],
124+ "Attachments": [
125+ {
126+ "Digest": "sha256:450fdd2e6b868fecd69e9891c2c404ba461aa38a47663b4805edeb8d2baf80b1",
127+ "Type": "https://slsa.dev/provenance/v0.2"
128+ }
129+ ]
130+ }
131+ ```
132+
133+ ```console
134+ $ docker buildx history inspect --format "{{.Name}}: {{.VCSRepository}} ({{.VCSRevision}})"
135+ buildx (binaries): https://github.com/crazy-max/buildx.git (f15eaa1ee324ffbbab29605600d27a84cab86361)
136+ ```
32137deprecated : false
33138hidden : false
34139experimental : false
0 commit comments