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

Multi-arch images #54

Open
Blaisorblade opened this issue Feb 10, 2023 · 3 comments
Open

Multi-arch images #54

Blaisorblade opened this issue Feb 10, 2023 · 3 comments

Comments

@Blaisorblade
Copy link
Contributor

Blaisorblade commented Feb 10, 2023

Docker lets you create images supporting multiple archs. Supporting ARM and x86 might be nice, even if not high priority. Priority might even decrease once Docker supports Rosetta emulation properly.

(Discussed on Zulip).

@amblafont
Copy link

I am also interested in arm64 support. I am happy to contribute (although I am a beginner with docker)

@tchajed
Copy link
Member

tchajed commented Nov 13, 2023

@amblafont if you want to work on this a starting point is docker buildx build --platform=linux/amd64,linux/arm64 ., which uses the buildx plugin to do a multi-arch build.

I think this has to emulate the platform you're not on, which is fine when run on arm64 but it's extremely slow to emulate arm64 on an Intel machine (I did this to build Z3 and it took several hours).

@amblafont
Copy link

Is there a way to build the two images on two different machines so that they build natively? I have an amd64 and an arm64 machine (Mac)

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

3 participants