From 7e67a003236257737cdccc10b1458a8106222b8b Mon Sep 17 00:00:00 2001 From: aevesdocker Date: Tue, 14 Oct 2025 10:20:07 +0100 Subject: [PATCH] docs: update --set Signed-off-by: aevesdocker --- docs/reference/buildx_bake.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/reference/buildx_bake.md b/docs/reference/buildx_bake.md index d8fd2084b..8a0cfdcd0 100644 --- a/docs/reference/buildx_bake.md +++ b/docs/reference/buildx_bake.md @@ -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`