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] PATHParameters & Attributes
| Name | Type | Description |
|---|---|---|
| PATH | string | Reviewed build context. |
| --load | string | Request local image export. |
Working Example
Example Snippetdocker
docker buildx build --load --network none -t bm-v09-buildkit:lab .