Docker CLI

docker buildx build

Builds using the selected builder. Confirm local driver and output; --load requests a single-platform local image. No registry push in this lab. docker build and docker buildx build can select different default builders; check overrides.

Formal Syntax & Structure

docker syntaxdocker
docker buildx build [OPTIONS] PATH

Parameters & Attributes

NameTypeDescription
PATHstringReviewed build context.
--loadstringRequest local image export.

Working Example

Example Snippetdocker
docker buildx build --load --network none -t bm-v09-buildkit:lab .
Docker Reference