buildx policy eval reads policy from stdin with -f -
Introduced 2026-03-31 · score 0.93
HOW TO USE IT
When evaluating a policy supplied on standard input, run `docker buildx policy eval -f - <source>`; `-f -` reads the policy from stdin.
docker buildx policy eval -f - <source>WHY THIS HELPS
Evaluate a policy supplied through standard input.
REQUIREMENTS AND LIMITATIONS
- Version: v0.33.0
- -f, --file: Policy filename to evaluate; `-` reads policy from stdin. Defaults to `Dockerfile`.
- Prerequisite: Buildx v0.33.0 or later for reading policy from stdin with `-f -`.
FIRST-PARTY EVIDENCE
- https://github.com/docker/buildx/releases/tag/v0.33.0
- https://docs.docker.com/reference/cli/docker/buildx/policy/eval/
Check the installed version and the source before using it. Entry JSON