CmdID / docker / docker buildx
docker buildx bake
Build from a file Docker Buildx reference
20 options
Also docker buildx f
Its page in the Docker Buildx reference
Options
--allowAllow build to access specified resources--builderOverride the configured builder instance--callSet method for evaluating build (check, outline, targets)--checkShorthand for --call=check--debug, -DEnable debug logging--file, -fBuild definition file--jobs, -jSet target execution behavior (format: N or mode[,parallel=N])--listList targets or variables--loadShorthand for --set=*.output=type=docker.--metadata-fileWrite build result metadata to a file--no-cacheDo not use cache when building the image--policyGlobal policy evaluation options (format: [disabled=true\--printPrint the options without building--progressSet type of progress output (auto, none, plain, quiet, rawjson, tty).--provenanceShorthand for --set=*.attest=type=provenance--pullAlways attempt to pull all referenced images--pushShorthand for --set=*.output=type=registry.--sbomShorthand for --set=*.attest=type=sbom--setOverride target value (e.g., targetpattern.key=value)--varSet a variable value (e.g., name=value)