docs: update --set

Signed-off-by: aevesdocker <allie.sadler@docker.com>
This commit is contained in:
aevesdocker
2025-10-14 10:20:07 +01:00
parent e88d60301e
commit 7e67a00323
+6
View File
@@ -410,6 +410,12 @@ $ docker buildx bake --set foo*.no-cache # bypass caching only fo
$ docker buildx bake --set target.platform+=linux/arm64 # appends 'linux/arm64' to the platform list
```
> [!NOTE]
>
> `--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.
> Array literal syntax like `--set target.tags=[a,b]` is not supported.
> The `platform` field is a special case. It also accepts a comma-separated list.
You can override the following fields:
* `annotations`