Last active
October 10, 2022 04:25
-
-
Save leoborlot/d2fba88179a2e4ebd46084286fe9e25f to your computer and use it in GitHub Desktop.
Como rodar o buildx com multiplataforma de forma funcional do apt update
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Solução para Docker Multyplatform. | |
| ##What actually solved my problem after two painful days was creating the following custom builder: | |
| ´´´ | |
| docker run --rm --privileged multiarch/qemu-user-static --reset -p yes | |
| docker buildx create --name multiarch --driver docker-container --use | |
| docker buildx inspect --bootstrap | |
| ´´´ | |
| ##Now I can successfully run: | |
| ´´´ | |
| docker buildx build --platform linux/arm64 -t user/repo --no-cache --pull . | |
| ´´´ | |
| Comando para buildar: | |
| docker buildx build --platform=linux/amd64,linux/arm64 --push --output=type=registry -t "leonardoborlot/mtcfacil" . | |
| Não esquecer de fazer login no Docker: | |
| docker login |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment