Skip to content

Commit b73aa93

Browse files
committed
Fix multi-platform build command
1 parent 830a2f1 commit b73aa93

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/manuals/build/building/multi-platform.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ environment and start building.
206206
```console
207207
$ docker buildx create --driver cloud <ORG>/<BUILDER_NAME>
208208
cloud-<ORG>-<BUILDER_NAME>
209-
$ docker build \
209+
$ docker buildx build \
210210
--builder cloud-<ORG>-<BUILDER_NAME> \
211211
--platform linux/amd64,linux/arm64,linux/arm/v7 \
212212
--tag <IMAGE_NAME> \
@@ -279,7 +279,7 @@ Steps:
279279
3. Build the image for `linux/amd64` and `linux/arm64`:
280280

281281
```console
282-
$ docker build --platform linux/amd64,linux/arm64 -t multi-platform .
282+
$ docker buildx build --platform linux/amd64,linux/arm64 -t multi-platform .
283283
```
284284

285285
4. Run the image and print the architecture:
@@ -339,7 +339,7 @@ Steps:
339339
3. Build the image for `linux/amd64` and `linux/arm64` using Docker Build Cloud:
340340

341341
```console
342-
$ docker build \
342+
$ docker buildx build \
343343
--builder <cloud-builder> \
344344
--platform linux/amd64,linux/arm64 \
345345
--output ./bin .
@@ -481,7 +481,7 @@ Steps:
481481
4. Build the image for `linux/amd64` and `linux/arm64`:
482482

483483
```console
484-
$ docker build --platform linux/amd64,linux/arm64 -t go-server .
484+
$ docker buildx build --platform linux/amd64,linux/arm64 -t go-server .
485485
```
486486

487487
This example has shown how to cross-compile a Go application for multiple

0 commit comments

Comments
 (0)