docker buildx debug build

October 13, 2023 ยท View on GitHub

Start a build

Aliases

docker buildx debug build, docker buildx debug b

Options

NameTypeDefaultDescription
--add-hoststringSliceAdd a custom host-to-IP mapping (format: host:ip)
--allowstringSliceAllow extra privileged entitlement (e.g., network.host, security.insecure)
--annotationstringArrayAdd annotation to the image
--atteststringArrayAttestation parameters (format: type=sbom,generator=image)
--build-argstringArraySet build-time variables
--build-contextstringArrayAdditional build contexts (e.g., name=path)
--builderstringOverride the configured builder instance
--cache-fromstringArrayExternal cache sources (e.g., user/app:cache, type=local,src=path/to/dir)
--cache-tostringArrayCache export destinations (e.g., user/app:cache, type=local,dest=path/to/dir)
--cgroup-parentstringSet the parent cgroup for the RUN instructions during build
--detachDetach buildx server (supported only on linux)
-f, --filestringName of the Dockerfile (default: PATH/Dockerfile)
--iidfilestringWrite the image ID to the file
--labelstringArraySet metadata for an image
--loadShorthand for --output=type=docker
--metadata-filestringWrite build result metadata to the file
--networkstringdefaultSet the networking mode for the RUN instructions during build
--no-cacheDo not use cache when building the image
--no-cache-filterstringArrayDo not cache specified stages
-o, --outputstringArrayOutput destination (format: type=local,dest=path)
--platformstringArraySet target platform for build
--printstringPrint result of information request (e.g., outline, targets)
--progressstringautoSet type of progress output (auto, plain, tty). Use plain to show container output
--provenancestringShorthand for --attest=type=provenance
--pullAlways attempt to pull all referenced images
--pushShorthand for --output=type=registry
-q, --quietSuppress the build output and print image ID on success
--rootstringSpecify root directory of server to connect
--sbomstringShorthand for --attest=type=sbom
--secretstringArraySecret to expose to the build (format: id=mysecret[,src=/local/secret])
--server-configstringSpecify buildx server config file (used only when launching new server)
--shm-sizebytes0Size of /dev/shm
--sshstringArraySSH agent socket or keys to expose to the build (format: default|<id>[=<socket>|<key>[,<key>]])
-t, --tagstringArrayName and optionally a tag (format: name:tag)
--targetstringSet the target build stage to build
--ulimitulimitUlimit options