Skip to content

Commit a3286a0

Browse files
dvdksncrazy-max
authored andcommitted
docs: added --platform=local example
Signed-off-by: David Karlsson <[email protected]>
1 parent b79345c commit a3286a0

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

docs/reference/buildx_build.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,8 +414,13 @@ The `registry` exporter is a shortcut for `type=image,push=true`.
414414

415415
Set the target platform for the build. All `FROM` commands inside the Dockerfile
416416
without their own `--platform` flag will pull base images for this platform and
417-
this value will also be the platform of the resulting image. The default value
418-
will be the current platform of the buildkit daemon.
417+
this value will also be the platform of the resulting image.
418+
419+
The default value is the platform of the BuildKit daemon where the build runs.
420+
The value takes the form of `os/arch` or `os/arch/variant`. For example,
421+
`linux/amd64` or `linux/arm/v7`. Additionally, the `--platform` flag also supports
422+
a special `local` value, which tells BuildKit to use the platform of the BuildKit
423+
client that invokes the build.
419424

420425
When using `docker-container` driver with `buildx`, this flag can accept multiple
421426
values as an input separated by a comma. With multiple values the result will be

0 commit comments

Comments
 (0)