The Wayback Machine - https://web.archive.org/web/20260130150109/https://docs.docker.com/reference/cli/docker/buildx/policy/test/
Answers are generated based on the documentation.

docker buildx policy test

DescriptionRun policy tests
Usagedocker buildx policy test <path>

Description

Run policy tests

Options

OptionDefaultDescription
--filenameDockerfileName of the Dockerfile to validate
--runRun only tests with name containing this substring