Skip to content

Commit d4b5b92

Browse files
Update buildx reference to v0.29.0 (#23477)
Update the buildx reference documentation to keep in sync with the latest release `v0.29.0` Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: jsternberg <[email protected]>
1 parent 4754655 commit d4b5b92

10 files changed

+93
-20
lines changed

_vendor/github.com/docker/buildx/docs/bake-reference.md

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_vendor/modules.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# github.com/moby/moby v28.4.0+incompatible
2-
# github.com/moby/buildkit v0.24.0
3-
# github.com/docker/buildx v0.28.0
2+
# github.com/moby/buildkit v0.25.0
3+
# github.com/docker/buildx v0.29.0
44
# github.com/docker/cli v28.4.0+incompatible
55
# github.com/docker/compose/v2 v2.39.4
66
# github.com/docker/model-cli v0.1.41

data/buildx/docker_buildx_bake.yaml

Lines changed: 55 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ options:
9393
- option: load
9494
value_type: bool
9595
default_value: "false"
96-
description: Shorthand for `--set=*.output=type=docker`
96+
description: Shorthand for `--set=*.output=type=docker`. Conditional.
97+
details_url: '#load'
9798
deprecated: false
9899
hidden: false
99100
experimental: false
@@ -136,7 +137,7 @@ options:
136137
value_type: string
137138
default_value: auto
138139
description: |
139-
Set type of progress output (`auto`, `quiet`, `plain`, `tty`, `rawjson`). Use plain to show container output
140+
Set type of progress output (`auto`, `none`, `plain`, `quiet`, `rawjson`, `tty`). Use plain to show container output
140141
details_url: '#progress'
141142
deprecated: false
142143
hidden: false
@@ -168,7 +169,8 @@ options:
168169
- option: push
169170
value_type: bool
170171
default_value: "false"
171-
description: Shorthand for `--set=*.output=type=registry`
172+
description: Shorthand for `--set=*.output=type=registry`. Conditional.
173+
details_url: '#push'
172174
deprecated: false
173175
hidden: false
174176
experimental: false
@@ -233,7 +235,7 @@ examples: |-
233235
privileges.
234236
235237
In addition to BuildKit's `network.host` and `security.insecure` entitlements
236-
(see [`docker buildx build --allow`](/reference/cli/docker/buildx/build/#allow),
238+
(see [`docker buildx build --allow`](/reference/cli/docker/buildx/build/#allow)),
237239
Bake supports file system entitlements that grant granular control over file
238240
system access. These are particularly useful when working with builds that need
239241
access to files outside the default working directory.
@@ -388,6 +390,47 @@ examples: |-
388390
$ docker buildx bake --list=type=targets,format=json
389391
```
390392
393+
### Load images into Docker (--load) {#load}
394+
395+
The `--load` flag is a convenience shorthand for adding an image export of type
396+
`docker`:
397+
398+
```console
399+
--load ≈ --set=*.output=type=docker
400+
```
401+
402+
However, its behavior is conditional:
403+
404+
- If the build definition has no output defined, `--load` adds
405+
`type=docker`.
406+
- If the build definition’s outputs are `docker`, `image`, `registry`,
407+
`oci`, `--load` will add a `type=docker` export if one is not already present.
408+
- If the build definition contains `local` or `tar` outputs,
409+
`--load` does nothing. It will not override those outputs.
410+
411+
For example, with the following bake file:
412+
413+
```hcl
414+
target "default" {
415+
output = ["type=tar,dest=hi.tar"]
416+
}
417+
```
418+
419+
With `--load`:
420+
421+
```console
422+
$ docker buildx bake --load --print
423+
...
424+
"output": [
425+
{
426+
"dest": "hi.tar"
427+
"type": "tar",
428+
}
429+
]
430+
```
431+
432+
The `tar` output remains unchanged.
433+
391434
### Write build results metadata to a file (--metadata-file) {#metadata-file}
392435
393436
Similar to [`buildx build --metadata-file`](/reference/cli/docker/buildx/build/#metadata-file) but
@@ -507,6 +550,14 @@ examples: |-
507550
508551
Same as `build --pull`.
509552
553+
### Push images to a registry (--push) {#push}
554+
555+
The `--push` flag follows the same logic as `--load`:
556+
557+
- If no outputs are defined, it adds a `type=image,push=true` export.
558+
- For existing `image` outputs, it sets `push=true`.
559+
- If outputs are set to `local` or `tar`, it does not override them.
560+
510561
### Create SBOM attestations (--sbom) {#sbom}
511562
512563
Same as [`build --sbom`](/reference/cli/docker/buildx/build/#sbom).

data/buildx/docker_buildx_build.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ options:
2121
value_type: stringArray
2222
default_value: '[]'
2323
description: |
24-
Allow extra privileged entitlement (e.g., `network.host`, `security.insecure`)
24+
Allow extra privileged entitlement (e.g., `network.host`, `security.insecure`, `device`)
2525
details_url: '#allow'
2626
deprecated: false
2727
hidden: false
@@ -345,7 +345,7 @@ options:
345345
value_type: string
346346
default_value: auto
347347
description: |
348-
Set type of progress output (`auto`, `quiet`, `plain`, `tty`, `rawjson`). Use plain to show container output
348+
Set type of progress output (`auto`, `none`, `plain`, `quiet`, `rawjson`, `tty`). Use plain to show container output
349349
details_url: '#progress'
350350
deprecated: false
351351
hidden: false
@@ -636,6 +636,10 @@ examples: |-
636636
- `network.host` - Allows executions with host networking.
637637
- `security.insecure` - Allows executions without sandbox. See
638638
[related Dockerfile extensions](/reference/dockerfile/#run---security).
639+
- `device` - Allows access to Container Device Interface (CDI) devices.
640+
- `--allow device` - Grants access to all devices.
641+
- `--allow device=kind|name` - Grants access to a specific device.
642+
- `--allow device=kind|name,alias=kind|name` - Grants access to a specific device, with optional aliasing.
639643
640644
For entitlements to be enabled, the BuildKit daemon also needs to allow them
641645
with `--allow-insecure-entitlement` (see [`create --buildkitd-flags`](/reference/cli/docker/buildx/create/#buildkitd-flags)).

data/buildx/docker_buildx_dap_build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ options:
2727
value_type: stringArray
2828
default_value: '[]'
2929
description: |
30-
Allow extra privileged entitlement (e.g., `network.host`, `security.insecure`)
30+
Allow extra privileged entitlement (e.g., `network.host`, `security.insecure`, `device`)
3131
deprecated: false
3232
hidden: false
3333
experimental: false
@@ -334,7 +334,7 @@ options:
334334
value_type: string
335335
default_value: auto
336336
description: |
337-
Set type of progress output (`auto`, `quiet`, `plain`, `tty`, `rawjson`). Use plain to show container output
337+
Set type of progress output (`auto`, `none`, `plain`, `quiet`, `rawjson`, `tty`). Use plain to show container output
338338
deprecated: false
339339
hidden: false
340340
experimental: false

data/buildx/docker_buildx_debug_build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ options:
2020
value_type: stringArray
2121
default_value: '[]'
2222
description: |
23-
Allow extra privileged entitlement (e.g., `network.host`, `security.insecure`)
23+
Allow extra privileged entitlement (e.g., `network.host`, `security.insecure`, `device`)
2424
deprecated: false
2525
hidden: false
2626
experimental: false
@@ -327,7 +327,7 @@ options:
327327
value_type: string
328328
default_value: auto
329329
description: |
330-
Set type of progress output (`auto`, `quiet`, `plain`, `tty`, `rawjson`). Use plain to show container output
330+
Set type of progress output (`auto`, `none`, `plain`, `quiet`, `rawjson`, `tty`). Use plain to show container output
331331
deprecated: false
332332
hidden: false
333333
experimental: false

data/buildx/docker_buildx_dial-stdio.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ options:
2020
swarm: false
2121
- option: progress
2222
value_type: string
23-
default_value: quiet
23+
default_value: none
2424
description: |
25-
Set type of progress output (`auto`, `plain`, `tty`, `rawjson`). Use plain to show container output
25+
Set type of progress output (`auto`, `plain`, `rawjson`, `tty`). Use plain to show container output
2626
deprecated: false
2727
hidden: false
2828
experimental: false

data/buildx/docker_buildx_imagetools_create.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,17 @@ options:
5959
experimentalcli: false
6060
kubernetes: false
6161
swarm: false
62+
- option: platform
63+
shorthand: p
64+
value_type: stringArray
65+
default_value: '[]'
66+
description: Filter specified platforms of target image
67+
deprecated: false
68+
hidden: false
69+
experimental: false
70+
experimentalcli: false
71+
kubernetes: false
72+
swarm: false
6273
- option: prefer-index
6374
value_type: bool
6475
default_value: "true"
@@ -74,7 +85,7 @@ options:
7485
value_type: string
7586
default_value: auto
7687
description: |
77-
Set type of progress output (`auto`, `plain`, `tty`, `rawjson`). Use plain to show container output
88+
Set type of progress output (`auto`, `none`, `plain`, `rawjson`, `tty`). Use plain to show container output
7889
deprecated: false
7990
hidden: false
8091
experimental: false

go.mod

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ require (
1515
github.com/containerd/stargz-snapshotter/estargz v0.16.3 // indirect
1616
github.com/containerd/typeurl/v2 v2.2.3 // indirect
1717
github.com/distribution/reference v0.6.0 // indirect
18-
github.com/docker/buildx v0.28.0 // indirect
18+
github.com/docker/buildx v0.29.0 // indirect
1919
github.com/docker/cli v28.4.0+incompatible // indirect; see "replace" rule at the bottom for actual version
2020
github.com/docker/compose/v2 v2.39.4 // indirect
2121
github.com/docker/distribution v2.8.3+incompatible // indirect
@@ -53,7 +53,7 @@ require (
5353
github.com/mattn/go-runewidth v0.0.16 // indirect
5454
github.com/mattn/go-shellwords v1.0.12 // indirect
5555
github.com/mitchellh/go-homedir v1.1.0 // indirect
56-
github.com/moby/buildkit v0.24.0 // indirect
56+
github.com/moby/buildkit v0.25.0 // indirect
5757
github.com/moby/docker-image-spec v1.3.1 // indirect
5858
github.com/moby/locker v1.0.1 // indirect
5959
github.com/moby/moby v28.4.0+incompatible // indirect; see "replace" rule at the bottom for actual version
@@ -102,17 +102,17 @@ require (
102102
google.golang.org/genproto/googleapis/api v0.0.0-20250603155806-513f23925822 // indirect
103103
google.golang.org/genproto/googleapis/rpc v0.0.0-20250603155806-513f23925822 // indirect
104104
google.golang.org/grpc v1.74.2 // indirect
105-
google.golang.org/protobuf v1.36.6 // indirect
105+
google.golang.org/protobuf v1.36.9 // indirect
106106
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
107107
gopkg.in/yaml.v3 v3.0.1 // indirect
108108
howett.net/plist v1.0.1 // indirect
109109
)
110110

111111
replace (
112-
github.com/docker/buildx => github.com/docker/buildx v0.28.0
112+
github.com/docker/buildx => github.com/docker/buildx v0.29.0
113113
github.com/docker/cli => github.com/docker/cli v28.4.0+incompatible
114-
github.com/docker/docker => github.com/docker/docker v28.4.0+incompatible
115114
github.com/docker/compose/v2 => github.com/docker/compose/v2 v2.39.4
115+
github.com/docker/docker => github.com/docker/docker v28.4.0+incompatible
116116
github.com/docker/model-cli => github.com/docker/model-cli v0.1.41
117117
github.com/docker/scout-cli => github.com/docker/scout-cli v1.18.1
118118
github.com/moby/buildkit => github.com/moby/buildkit v0.24.0

go.sum

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ github.com/docker/buildx v0.27.0 h1:8QQOqIAMpDItzlmYO5ua/AR2Qttu07hHeOeOxPSbUR8=
4242
github.com/docker/buildx v0.27.0/go.mod h1:omZ9N6owYkRoAN79fq+Dfa0RwfR3iblCGuUyThovCpM=
4343
github.com/docker/buildx v0.28.0 h1:ZnrVsZ/qQwSOQ4Fx3IgXjiurAwvocaF1YUaPbIXD89E=
4444
github.com/docker/buildx v0.28.0/go.mod h1:nLwx58w7xrQbLVSXiWiHpkVhY4ou4ci/hYomc139Vjk=
45+
github.com/docker/buildx v0.29.0 h1:lAo46FeLojGUkFLy8l296CPZPxPVkGWxOfuWP54Xtqw=
46+
github.com/docker/buildx v0.29.0/go.mod h1:J4EFv6oxlPiV1MjO0VyJx2u5tLM7ImDEl9zyB8d4wPI=
4547
github.com/docker/cli v28.2.1+incompatible h1:AYyTcuwvhl9dXdyCiXlOGXiIqSNYzTmaDNpxIISPGsM=
4648
github.com/docker/cli v28.2.1+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
4749
github.com/docker/cli v28.3.0+incompatible h1:s+ttruVLhB5ayeuf2BciwDVxYdKi+RoUlxmwNHV3Vfo=
@@ -423,6 +425,8 @@ google.golang.org/grpc v1.74.2 h1:WoosgB65DlWVC9FqI82dGsZhWFNBSLjQ84bjROOpMu4=
423425
google.golang.org/grpc v1.74.2/go.mod h1:CtQ+BGjaAIXHs/5YS3i473GqwBBa1zGQNevxdeBEXrM=
424426
google.golang.org/protobuf v1.36.6 h1:z1NpPI8ku2WgiWnf+t9wTPsn6eP1L7ksHUlkfLvd9xY=
425427
google.golang.org/protobuf v1.36.6/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY=
428+
google.golang.org/protobuf v1.36.9 h1:w2gp2mA27hUeUzj9Ex9FBjsBm40zfaDtEWow293U7Iw=
429+
google.golang.org/protobuf v1.36.9/go.mod h1:fuxRtAxBytpl4zzqUh6/eyUujkJdNiuEkXntxiD/uRU=
426430
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
427431
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=
428432
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=

0 commit comments

Comments
 (0)