From 1190f4dad64b2d4146acaf0ba7c9c7374bfd2ea4 Mon Sep 17 00:00:00 2001 From: Tomas Baca Date: Mon, 2 Dec 2024 16:57:36 +0100 Subject: [PATCH] wip docker --- docs/10-prerequisities/30-docker/20-crossplatform-build.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/10-prerequisities/30-docker/20-crossplatform-build.md b/docs/10-prerequisities/30-docker/20-crossplatform-build.md index c6ea0c03..1f254e57 100644 --- a/docs/10-prerequisities/30-docker/20-crossplatform-build.md +++ b/docs/10-prerequisities/30-docker/20-crossplatform-build.md @@ -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 --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