Skip to content

Instantly share code, notes, and snippets.

@leoborlot
Last active October 10, 2022 04:25
Show Gist options
  • Select an option

  • Save leoborlot/d2fba88179a2e4ebd46084286fe9e25f to your computer and use it in GitHub Desktop.

Select an option

Save leoborlot/d2fba88179a2e4ebd46084286fe9e25f to your computer and use it in GitHub Desktop.
Como rodar o buildx com multiplataforma de forma funcional do apt update
#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