Skip to content

Commit

Permalink
wip docker
Browse files Browse the repository at this point in the history
  • Loading branch information
klaxalk committed Dec 2, 2024
1 parent ec3e979 commit 1190f4d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/10-prerequisities/30-docker/20-crossplatform-build.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,15 @@ First, instantiate a multiplatform builder and set it to be the default (`--use`
docker buildx create --name container-builder --driver docker-container --bootstrap --use
```

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:
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.
We usually `--push` the image immediately after the build into a docker registry.

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

Do not forget to change the default builder back into the original builder (probably `default`) after you finish with the multiplatform build.

### Listing the available docker builders

```bash
Expand Down

0 comments on commit 1190f4d

Please sign in to comment.