@ -1,32 +1,36 @@
# ` buildx build [OPTIONS] PATH | URL | -`
# buildx build
The `buildx build` command starts a build using BuildKit. This command is similar
```
to the UI of `docker build` command and takes the same flags and arguments.
Usage: docker buildx build [OPTIONS] PATH | URL | -
Options:
Start a build
| Flag | Description |
Aliases:
| --- | --- |
build, b
| --add-host [] | Add a custom host-to-IP mapping (host:ip)
| --allow [] | Allow extra privileged entitlement, e.g. network.host, security.insecure
Options:
| --build-arg [] | Set build-time variables
--add-host strings Add a custom host-to-IP mapping (host:ip)
| --cache-from [] | External cache sources (eg. user/app:cache, type=local,src=path/to/dir)
--allow strings Allow extra privileged entitlement, e.g. network.host, security.insecure
| --cache-to [] | Cache export destinations (eg. user/app:cache, type=local,dest=path/to/dir)
--build-arg stringArray Set build-time variables
| --file string | Name of the Dockerfile (Default is 'PATH/Dockerfile')
--builder string Override the configured builder instance
| --iidfile string | Write the image ID to the file
--cache-from stringArray External cache sources (eg. user/app:cache, type=local,src=path/to/dir)
| --label [] | Set metadata for an image
--cache-to stringArray Cache export destinations (eg. user/app:cache, type=local,dest=path/to/dir)
| --load | Shorthand for --output=type=docker
-f, --file string Name of the Dockerfile (Default is 'PATH/Dockerfile')
| --network string | Set the networking mode for the RUN instructions during build (default "default")
--iidfile string Write the image ID to the file
| --no-cache | Do not use cache when building the image
--label stringArray Set metadata for an image
| --output [] | Output destination (format: type=local,dest=path)
--load Shorthand for --output=type=docker
| --platform [] | Set target platform for build
--network string Set the networking mode for the RUN instructions during build (default "default")
| --progress string | Set type of progress output (auto, plain, tty). Use plain to show container output (default "auto")
--no-cache Do not use cache when building the image
| --pull | Always attempt to pull a newer version of the image
-o, --output stringArray Output destination (format: type=local,dest=path)
| --push | Shorthand for --output=type=registry
--platform stringArray Set target platform for build
| --secret [] | Secret file to expose to the build: id=mysecret,src=/local/secret
--progress string Set type of progress output (auto, plain, tty). Use plain to show container output (default "auto")
| --ssh [] | SSH agent socket or keys to expose to the build (format: default\|< id> [=< socket> \|< key> [,< key> ]])
--pull Always attempt to pull a newer version of the image
| --tag [] | Name and optionally a tag in the 'name:tag' format
--push Shorthand for --output=type=registry
| --target string | Set the target build stage to build.
--secret stringArray Secret file to expose to the build: id=mysecret,src=/local/secret
--ssh stringArray SSH agent socket or keys to expose to the build (format: default|< id > [=< socket > |< key > [,< key > ]])
-t, --tag stringArray Name and optionally a tag in the 'name:tag' format
--target string Set the target build stage to build.
```
## Description
## Description