Skip to content

Commit

Permalink
pes
Browse files Browse the repository at this point in the history
  • Loading branch information
klaxalk committed Dec 2, 2024
1 parent 9262eab commit ec3e979
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/10-prerequisities/30-docker/20-crossplatform-build.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ docker build . --file Dockerfile --tag <my_tag> --platform=arm64
```

The crossplatform build is facilitated by QEMU.
Expect a run-time approx. 10x slower than for the native platform.
Expect a run-time approx. 10x slower than for your native platform.

## Multi-platform docker build

Multi-platform images can be built using the `dockerx` multiplatform builder.
First, instantiate a multiplatform builder and set it to be the default:
First, instantiate a multiplatform builder and set it to be the default (`--use`):

```bash
docker buildx create --name container-builder --driver docker-container --bootstrap --use
Expand All @@ -27,7 +27,7 @@ docker buildx create --name container-builder --driver docker-container --bootst
Then, build an image using the `buildx` command (which uses the selected builder) and supply the `--platform` parameter with the list of the desired platforms:

```bash
docker buildx build . --file Dockerfile --tag $REGISTRY/$LOCAL_TAG --platform=linux/arm64,linux/amd64 --push
docker buildx build . --file Dockerfile --tag <my_tag> --platform=linux/arm64,linux/amd64 --push
```

### Listing the available docker builders
Expand Down

0 comments on commit ec3e979

Please sign in to comment.