Skip to content

Commit e19855b

Browse files
committed
docs: update --set
Signed-off-by: aevesdocker <[email protected]>
1 parent e88d603 commit e19855b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/reference/buildx_bake.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,12 @@ $ docker buildx bake --set foo*.no-cache # bypass caching only fo
410410
$ docker buildx bake --set target.platform+=linux/arm64 # appends 'linux/arm64' to the platform list
411411
```
412412

413+
`--set` is a repeatable flag. For array fields such as `tags`, repeat `--set` to provide multiple values or use the `+=` operator to append without replacing.
414+
415+
Array literal syntax like `--set target.tags=[a,b]` is not supported.
416+
417+
The `platform` field is a special case. it also accepts a comma-separated list.
418+
413419
You can override the following fields:
414420

415421
* `annotations`
@@ -451,3 +457,7 @@ You can append using `+=` operator for the following fields:
451457

452458
> [!NOTE]
453459
> ¹ These fields already append by default.
460+
461+
#### Examples
462+
463+

0 commit comments

Comments
 (0)