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

How does Rosetta 2 interact with BuildKit's QEMU emulators? #7491

Open
rgov opened this issue Nov 22, 2024 · 0 comments
Open

How does Rosetta 2 interact with BuildKit's QEMU emulators? #7491

rgov opened this issue Nov 22, 2024 · 0 comments

Comments

@rgov
Copy link

rgov commented Nov 22, 2024

(Apologies for a question, but discussions aren't enabled.)

Docker Desktop 4.26 added support for Rosetta 2 for emulating x86_64 containers on Apple Silicon Macs.

How does this interact with BuildKit? The moby/buildkit container image includes QEMU at /usr/bin/buildkit-qemu-x86_64; this is mounted into the intermediate build container at /dev/.buildkit_qemu_emulator and every RUN step appears to execute /dev/.buildkit_qemu_emulator /bin/sh -c <command>.

So where is Rosetta entering the mix? Is the execution of QEMU being intercepted somehow?

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

No branches or pull requests

2 participants