Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for buildx when building Docker image #83

Open
wardzxzxc opened this issue Jun 14, 2022 · 1 comment
Open

support for buildx when building Docker image #83

wardzxzxc opened this issue Jun 14, 2022 · 1 comment

Comments

@wardzxzxc
Copy link

With the increased usage of the M1 chips in Macbooks, users might want to build Docker images for different architectures. This is especially so since the default images build by M1 Macbooks are in arm64 but most Cloud services are using a Linux based OS for their VMs.

Although currently the export command allows users to pass in build arguments, it's still not possible to use buildx and select a different architecture when building images. Instead, users will need to understand what's happening to the export command and mimic it manually so they can use buildx to build the Docker image.

@edublancas
Copy link
Contributor

hi, thanks for your feedback. we'll work on this.

this is an easy fix. We already support passing custom args to docker build , although this feature is undocumented.

the remaining change would be to also support customizing which commands is executed (possibly via another env variable):

args = ['docker', 'build', '.', '--tag', image_local]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants