-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 can the worker be configured to support running binaries for multiple archs? #550
Comments
Copying some parts of the answer already on slack. First, you need to configure the kernel to run the binaries for other arch using binfmt_misc kernel feature. There are many tutorials for this so you may look something like "emulating arm binfmt_misc" for your platform. https://www.kernel.org/doc/html/latest/admin-guide/binfmt-misc.html is a good explanation offered in slack. Docker for Mac also comes preconfigured with this support. You don't need to do anything specific for the container or build setup for this. from @ijc in #buildkit
I can confirm the I'd recommend testing it out with something like after this setup.
I took the binaries for my system from https://github.com/multiarch/qemu-user-static/releases but probably any other source(like your package manager) works as well.
After you have done that and confirmed it works you need to let buildkitd know that additional platforms are supported. Eg. |
@tonistiigi many thanks! I think I missed the 'F' option. I'll try it out and if it successful I'll close the issue! |
FWIW in the Debian world From Now the |
Is there any chance to run it with kernels before 4.8, missing the |
hi,
I saw this demo and I wonder how I can configure the worker to support running binaries for multiple archs.
Thanks!
The text was updated successfully, but these errors were encountered: