-
-
Notifications
You must be signed in to change notification settings - Fork 257
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
Building docker images on macOS doesn't work #827
Comments
Thanks for reporting. There is a highlight box saying
We should probably point that out more clearly. The whole point of cross compilation (and much of Nix) is exactly that one doesn't need virtual machines, but that recent macOS work in fact allows using VMs transparently. @olafklingt I can imagine we could provide simple VM instructions for macOS, most of that is already in place, right? |
@fricklerhandwerk sorry I can't even find that part in the tutorial. Can you please screenshot it / point it out with a link? |
@salamehsameera which architecture are you on? you can find the mentioned comment here Can you describe in detail what is not working? I am not on mac-os so i don't know the pitfalls yet. |
@salamehsameera oh sorry, I made a mistake and looked at the linked article, as @olafklingt noted: https://nix.dev/tutorials/cross-compilation What I wanted to say is that the instruction to do cross compilation may not actually work, as the note on that other page suggests. Both pages were not actively maintained until you asked. Please show what exactly you did (post the expressions you used and the commands you ran), otherwise we can't help figuring it out. |
I just updated the description to point out to the tutorial page I was referring to. It should be https://nix.dev/tutorials/nixos/building-and-running-docker-images. I'm on mac, and the tutorial suggests to cross compile to linux: Here is a screenshot of the error when executing the code from the tutorial Full error is:
|
I tried something similar, except with my own cross-compiled binary, and got exactly the same error. MacOS Sonoma 14.5 on Apple M2 Pro. |
Same issue on MacOS Sonoma 14.4 with an Intel Core i9, both with and without using haskell.nix's |
Hi
I just want to point out that this part of the tutorial (link) doesn't work
I was trying to run that script on macOS and it kept erroring out, probably better to suggest using a VM. I used Multipass https://multipass.run/ and it's very easy to use, so probably suggesting that is better. Thanks
The text was updated successfully, but these errors were encountered: