bake: requires explicit allow for local output delete mode

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2026-06-10 16:41:09 +02:00
committed by CrazyMax
parent 1916210ddc
commit 473c6ef306
5 changed files with 165 additions and 19 deletions
+4
View File
@@ -901,6 +901,10 @@ target "default" {
}
```
> [!NOTE]
> Local outputs with `mode=delete` require granting `--allow=local-output-delete`
> when invoking `docker buildx bake`.
### `target.policy`
Policies to validate build sources and metadata. Each entry uses the same keys
+3
View File
@@ -85,6 +85,9 @@ The `fs` entitlements take a path value (relative or absolute) to a directory
on the filesystem. Alternatively, you can pass a wildcard (`*`) to allow Bake
to access the entire filesystem.
Bake also supports `--allow=local-output-delete` to grant local outputs
permission to delete stale files when `mode=delete` is set.
### Example: fs.read
Given the following Bake configuration, Bake would need to access the parent