Skip to content

Commit 1828d54

Browse files
authored
Merge pull request #3456 from aevesdocker/ENGDOCS-3038
docs: update --set
2 parents 854a58a + 7e67a00 commit 1828d54

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/reference/buildx_bake.md

Lines changed: 6 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+
> [!NOTE]
414+
>
415+
> `--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.
416+
> Array literal syntax like `--set target.tags=[a,b]` is not supported.
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`

0 commit comments

Comments
 (0)