Skip to content

Commit 5bfe083

Browse files
authored
Merge pull request #22643 from crazy-max/buildx-0.24.0-rc1
Update buildx reference to v0.24.0-rc1
1 parent 0c69fcb commit 5bfe083

18 files changed

+482
-115
lines changed

_vendor/modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# github.com/moby/moby v28.1.0-rc.2+incompatible
2-
# github.com/moby/buildkit v0.21.1
2+
# github.com/moby/buildkit v0.22.0-rc1
33
# github.com/docker/buildx v0.23.0
44
# github.com/docker/cli v28.1.1+incompatible
55
# github.com/docker/compose/v2 v2.36.0

data/buildx/docker_buildx_build.yaml

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -187,16 +187,6 @@ options:
187187
experimentalcli: false
188188
kubernetes: false
189189
swarm: false
190-
- option: detach
191-
value_type: bool
192-
default_value: "false"
193-
description: Detach buildx server (supported only on linux)
194-
deprecated: false
195-
hidden: false
196-
experimental: false
197-
experimentalcli: true
198-
kubernetes: false
199-
swarm: false
200190
- option: file
201191
shorthand: f
202192
value_type: string
@@ -415,15 +405,6 @@ options:
415405
experimentalcli: false
416406
kubernetes: false
417407
swarm: false
418-
- option: root
419-
value_type: string
420-
description: Specify root directory of server to connect
421-
deprecated: false
422-
hidden: false
423-
experimental: false
424-
experimentalcli: true
425-
kubernetes: false
426-
swarm: false
427408
- option: sbom
428409
value_type: string
429410
description: Shorthand for `--attest=type=sbom`
@@ -456,16 +437,6 @@ options:
456437
experimentalcli: false
457438
kubernetes: false
458439
swarm: false
459-
- option: server-config
460-
value_type: string
461-
description: |
462-
Specify buildx server config file (used only when launching new server)
463-
deprecated: false
464-
hidden: false
465-
experimental: false
466-
experimentalcli: true
467-
kubernetes: false
468-
swarm: false
469440
- option: shm-size
470441
value_type: bytes
471442
default_value: "0"

data/buildx/docker_buildx_debug.yaml

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,6 @@ cname:
99
clink:
1010
- docker_buildx_debug_build.yaml
1111
options:
12-
- option: detach
13-
value_type: bool
14-
default_value: "true"
15-
description: Detach buildx server for the monitor (supported only on linux)
16-
deprecated: false
17-
hidden: false
18-
experimental: false
19-
experimentalcli: true
20-
kubernetes: false
21-
swarm: false
2212
- option: invoke
2313
value_type: string
2414
description: Launch a monitor with executing specified command
@@ -49,25 +39,6 @@ options:
4939
experimentalcli: false
5040
kubernetes: false
5141
swarm: false
52-
- option: root
53-
value_type: string
54-
description: Specify root directory of server to connect for the monitor
55-
deprecated: false
56-
hidden: false
57-
experimental: false
58-
experimentalcli: true
59-
kubernetes: false
60-
swarm: false
61-
- option: server-config
62-
value_type: string
63-
description: |
64-
Specify buildx server config file for the monitor (used only when launching new server)
65-
deprecated: false
66-
hidden: false
67-
experimental: false
68-
experimentalcli: true
69-
kubernetes: false
70-
swarm: false
7142
inherited_options:
7243
- option: builder
7344
value_type: string

data/buildx/docker_buildx_debug_build.yaml

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -176,16 +176,6 @@ options:
176176
experimentalcli: false
177177
kubernetes: false
178178
swarm: false
179-
- option: detach
180-
value_type: bool
181-
default_value: "false"
182-
description: Detach buildx server (supported only on linux)
183-
deprecated: false
184-
hidden: false
185-
experimental: false
186-
experimentalcli: true
187-
kubernetes: false
188-
swarm: false
189179
- option: file
190180
shorthand: f
191181
value_type: string
@@ -394,15 +384,6 @@ options:
394384
experimentalcli: false
395385
kubernetes: false
396386
swarm: false
397-
- option: root
398-
value_type: string
399-
description: Specify root directory of server to connect
400-
deprecated: false
401-
hidden: false
402-
experimental: false
403-
experimentalcli: true
404-
kubernetes: false
405-
swarm: false
406387
- option: sbom
407388
value_type: string
408389
description: Shorthand for `--attest=type=sbom`
@@ -433,16 +414,6 @@ options:
433414
experimentalcli: false
434415
kubernetes: false
435416
swarm: false
436-
- option: server-config
437-
value_type: string
438-
description: |
439-
Specify buildx server config file (used only when launching new server)
440-
deprecated: false
441-
hidden: false
442-
experimental: false
443-
experimentalcli: true
444-
kubernetes: false
445-
swarm: false
446417
- option: shm-size
447418
value_type: bytes
448419
default_value: "0"

data/buildx/docker_buildx_dial-stdio.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
command: docker buildx dial-stdio
22
short: Proxy current stdio streams to builder instance
33
long: |-
4-
dial-stdio uses the stdin and stdout streams of the command to proxy to the configured builder instance.
5-
It is not intended to be used by humans, but rather by other tools that want to interact with the builder instance via BuildKit API.
4+
dial-stdio uses the stdin and stdout streams of the command to proxy to the
5+
configured builder instance. It is not intended to be used by humans, but
6+
rather by other tools that want to interact with the builder instance via
7+
BuildKit API.
68
usage: docker buildx dial-stdio
79
pname: docker buildx
810
plink: docker_buildx.yaml
@@ -50,7 +52,7 @@ inherited_options:
5052
swarm: false
5153
examples: |-
5254
Example go program that uses the dial-stdio command wire up a buildkit client.
53-
This is for example use only and may not be suitable for production use.
55+
This is, for example, use only and may not be suitable for production use.
5456
5557
```go
5658
client.New(ctx, "", client.WithContextDialer(func(context.Context, string) (net.Conn, error) {

data/buildx/docker_buildx_history_export.yaml

Lines changed: 87 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,29 @@
11
command: docker buildx history export
2-
short: Export a build into Docker Desktop bundle
3-
long: Export a build into Docker Desktop bundle
4-
usage: docker buildx history export [OPTIONS] [REF]
2+
short: Export build records into Docker Desktop bundle
3+
long: |-
4+
Export one or more build records to `.dockerbuild` archive files. These archives
5+
contain metadata, logs, and build outputs, and can be imported into Docker
6+
Desktop or shared across environments.
7+
usage: docker buildx history export [OPTIONS] [REF...]
58
pname: docker buildx history
69
plink: docker_buildx_history.yaml
710
options:
811
- option: all
912
value_type: bool
1013
default_value: "false"
11-
description: Export all records for the builder
14+
description: Export all build records for the builder
15+
details_url: '#all'
16+
deprecated: false
17+
hidden: false
18+
experimental: false
19+
experimentalcli: false
20+
kubernetes: false
21+
swarm: false
22+
- option: finalize
23+
value_type: bool
24+
default_value: "false"
25+
description: Ensure build records are finalized before exporting
26+
details_url: '#finalize'
1227
deprecated: false
1328
hidden: false
1429
experimental: false
@@ -19,6 +34,7 @@ options:
1934
shorthand: o
2035
value_type: string
2136
description: Output file path
37+
details_url: '#output'
2238
deprecated: false
2339
hidden: false
2440
experimental: false
@@ -29,6 +45,7 @@ inherited_options:
2945
- option: builder
3046
value_type: string
3147
description: Override the configured builder instance
48+
details_url: '#builder'
3249
deprecated: false
3350
hidden: false
3451
experimental: false
@@ -40,12 +57,78 @@ inherited_options:
4057
value_type: bool
4158
default_value: "false"
4259
description: Enable debug logging
60+
details_url: '#debug'
4361
deprecated: false
4462
hidden: false
4563
experimental: false
4664
experimentalcli: false
4765
kubernetes: false
4866
swarm: false
67+
examples: |-
68+
### Export all build records to a file (--all) {#all}
69+
70+
Use the `--all` flag and redirect the output:
71+
72+
```console
73+
docker buildx history export --all > all-builds.dockerbuild
74+
```
75+
76+
Or use the `--output` flag:
77+
78+
```console
79+
docker buildx history export --all -o all-builds.dockerbuild
80+
```
81+
82+
### Use a specific builder instance (--builder) {#builder}
83+
84+
```console
85+
docker buildx history export --builder builder0 ^1 -o builder0-build.dockerbuild
86+
```
87+
88+
### Enable debug logging (--debug) {#debug}
89+
90+
```console
91+
docker buildx history export --debug qu2gsuo8ejqrwdfii23xkkckt -o debug-build.dockerbuild
92+
```
93+
94+
### Ensure build records are finalized before exporting (--finalize) {#finalize}
95+
96+
Clients can report their own traces concurrently, and not all traces may be
97+
saved yet by the time of the export. Use the `--finalize` flag to ensure all
98+
traces are finalized before exporting.
99+
100+
```console
101+
docker buildx history export --finalize qu2gsuo8ejqrwdfii23xkkckt -o finalized-build.dockerbuild
102+
```
103+
104+
### Export a single build to a custom file (--output) {#output}
105+
106+
```console
107+
docker buildx history export qu2gsuo8ejqrwdfii23xkkckt --output mybuild.dockerbuild
108+
```
109+
110+
You can find build IDs by running:
111+
112+
```console
113+
docker buildx history ls
114+
```
115+
116+
To export two builds to separate files:
117+
118+
```console
119+
# Using build IDs
120+
docker buildx history export qu2gsuo8ejqrwdfii23xkkckt qsiifiuf1ad9pa9qvppc0z1l3 -o multi.dockerbuild
121+
122+
# Or using relative offsets
123+
docker buildx history export ^1 ^2 -o multi.dockerbuild
124+
```
125+
126+
Or use shell redirection:
127+
128+
```console
129+
docker buildx history export ^1 > mybuild.dockerbuild
130+
docker buildx history export ^2 > backend-build.dockerbuild
131+
```
49132
deprecated: false
50133
hidden: false
51134
experimental: false

data/buildx/docker_buildx_history_import.yaml

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
command: docker buildx history import
2-
short: Import a build into Docker Desktop
3-
long: Import a build into Docker Desktop
4-
usage: docker buildx history import [OPTIONS] < bundle.dockerbuild
2+
short: Import build records into Docker Desktop
3+
long: |-
4+
Import a build record from a `.dockerbuild` archive into Docker Desktop. This
5+
lets you view, inspect, and analyze builds created in other environments or CI
6+
pipelines.
7+
usage: docker buildx history import [OPTIONS] -
58
pname: docker buildx history
69
plink: docker_buildx_history.yaml
710
options:
@@ -10,6 +13,7 @@ options:
1013
value_type: stringArray
1114
default_value: '[]'
1215
description: Import from a file path
16+
details_url: '#file'
1317
deprecated: false
1418
hidden: false
1519
experimental: false
@@ -37,6 +41,30 @@ inherited_options:
3741
experimentalcli: false
3842
kubernetes: false
3943
swarm: false
44+
examples: |-
45+
### Import a `.dockerbuild` archive from standard input
46+
47+
```console
48+
docker buildx history import < mybuild.dockerbuild
49+
```
50+
51+
### Import a build archive from a file (--file) {#file}
52+
53+
```console
54+
docker buildx history import --file ./artifacts/backend-build.dockerbuild
55+
```
56+
57+
### Open a build manually
58+
59+
By default, the `import` command automatically opens the imported build in Docker
60+
Desktop. You don't need to run `open` unless you're opening a specific build
61+
or re-opening it later.
62+
63+
If you've imported multiple builds, you can open one manually:
64+
65+
```console
66+
docker buildx history open ci-build
67+
```
4068
deprecated: false
4169
hidden: false
4270
experimental: false

0 commit comments

Comments
 (0)