Contributing guidelines
I've found a bug and checked that ...
Description
I'd like to bake all targets with a common policy. The documentation:
https://docs.docker.com/build/policies/usage/#bake-with-policy-options
Seems to indicate that this is done with:
docker buildx bake --policy disabled=true production
However, bake doesn't accept --policy and there appears to be no such flag in the code.
Either the documentation should be changed to reflect this, or --policy should be added to bake.
Expected behaviour
bake accepts --policy
Actual behaviour
bake doesn't accept --policy
Buildx version
github.com/docker/buildx v0.33.0-desktop.1 7f91f038ac14cbf5c4b2a6b76470860814424da1
Docker info
Builders list
NAME/NODE DRIVER/ENDPOINT STATUS BUILDKIT PLATFORMS
default docker
\_ default \_ default running v0.29.0 linux/amd64 (+2), linux/arm64, linux/ppc64le, linux/s390x, (2 more)
desktop-linux* docker
\_ desktop-linux \_ desktop-linux running v0.29.0 linux/amd64 (+2), linux/arm64, linux/ppc64le, linux/s390x, (2 more)
Configuration
N/A
Build logs
Additional info
No response
Contributing guidelines
I've found a bug and checked that ...
Description
I'd like to bake all targets with a common policy. The documentation:
https://docs.docker.com/build/policies/usage/#bake-with-policy-options
Seems to indicate that this is done with:
However,
bakedoesn't accept--policyand there appears to be no such flag in the code.Either the documentation should be changed to reflect this, or
--policyshould be added tobake.Expected behaviour
bakeaccepts--policyActual behaviour
bakedoesn't accept--policyBuildx version
github.com/docker/buildx v0.33.0-desktop.1 7f91f038ac14cbf5c4b2a6b76470860814424da1
Docker info
Builders list
Configuration
N/A
Build logs
Additional info
No response