buildx policy eval accepts --platform
Introduced 2026-03-31 · score 0.93
HOW TO USE IT
When evaluating an image source for a specific target platform, run `docker buildx policy eval --platform <os/arch> docker-image://<image>`.
docker buildx policy eval --platform <os/arch> docker-image://<image>WHY THIS HELPS
Evaluate a policy for image sources targeting a specific platform.
REQUIREMENTS AND LIMITATIONS
- Version: v0.33.0
- source (required): Source to evaluate; the policy usage docs identify `docker-image://` as the image-source prefix.
- --platform: Target platform for policy evaluation.
FIRST-PARTY EVIDENCE
- https://github.com/docker/buildx/releases/tag/v0.33.0
- https://docs.docker.com/reference/cli/docker/buildx/policy/eval/
- https://docs.docker.com/build/policies/usage/
Check the installed version and the source before using it. Entry JSON