CmdID / docker / docker buildx / docker buildx debug
docker buildx debug build
Start a build Docker Buildx reference
37 options
Also docker buildx b, docker buildx build, docker buildx dap build
Its page in the Docker Buildx reference
Options
Show its 37 options
--add-hostAdd a custom host-to-IP mapping (format: host:ip)--allowAllow extra privileged entitlement (e.g., network.host, security.insecure, device, buildx.local.delete)--annotationAdd annotation to the image--attestAttestation parameters (format: type=sbom,generator=image)--build-argSet build-time variables--build-contextAdditional build contexts (e.g., name=path)--builderOverride the configured builder instance--cache-fromExternal cache sources (e.g., user/app:cache, type=local,src=path/to/dir)--cache-toCache export destinations (e.g., user/app:cache, type=local,dest=path/to/dir)--callSet method for evaluating build (check, outline, targets)--cgroup-parentSet the parent cgroup for the RUN instructions during build--checkShorthand for --call=check--debug, -DEnable debug logging--file, -fName of the Dockerfile (default: PATH/Dockerfile)--iidfileWrite the image ID to a file--labelSet metadata for an image--loadShorthand for --output=type=docker--metadata-fileWrite build result metadata to a file--networkSet the networking mode for the RUN instructions during build--no-cache-filterDo not cache specified stages--no-cacheDo not use cache when building the image--output, -oOutput destination (format: type=local,dest=path)--platformSet target platform for build--policyPolicy configuration (format: filename=path[,filename=path][,reset=true\--progressSet type of progress output (auto, none, plain, quiet, rawjson, tty).--provenanceShorthand for --attest=type=provenance--pullAlways attempt to pull all referenced images--pushShorthand for --output=type=registry,unpack=false--quiet, -qSuppress the build output and print image ID on success--resourceResource limits for build containers (format: memory=2g, cpu-quota=50000)--sbomShorthand for --attest=type=sbom--secretSecret to expose to the build (format: id=mysecret[,src=/local/secret])--shm-sizeShared memory size for build containers--sshSSH agent socket or keys to expose to the build (format: default\--tag, -tImage identifier (format: [registry/]repository[:tag])--targetSet the target build stage to build--ulimitUlimit options