-
Notifications
You must be signed in to change notification settings - Fork 158
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
Feature/hangover #139
base: master
Are you sure you want to change the base?
Feature/hangover #139
Conversation
@@ -0,0 +1,30 @@ | |||
#!/usr/bin/env bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might want to add .sh to this filename
docker run --rm hangover-builder tar -C /root/hangover/ --exclude-vcs -czf - . > hangover.tar.gz | ||
|
||
docker build \ | ||
--platform="linux/arm64" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you do platform on docker build? i thought you had to do docker buildx build --platform
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, Buildkit is the default build engine on Docker Desktop for Mac (and docker-ce for Linux and I assume in other versions too), so you can drop the buildx commands and don’t even need to use —load or buildx create.
is it pushed and ready to retest? |
it is.
$PATH isn't working but
|
|
It was worth a shot. :P |
@brandonros yeah, that's disappointing. I was really hoping Hangover was going to be the silver bullet, but it is still very early alpha. There's a chance there's also an issue with my build so I'll have a go at replicating some of the programs listed on the hangover readme. Another option is Crossover: https://www.codeweavers.com/crossover/. It's a paid product, but they also allow open source builds. I'm thinking of giving this a go next, but you may want to give their free trial a go to see if it runs your program? |
Hilariously, I set up Windows 11 with Parallels as per your suggestion (I guess I tried it too early when M1 first came out/before Windows 11 arm64 builds were floating around). It worked flawlessly. Well... pretty sluggish but I'll ignore that. I went to run the specific program I am trying to run and... it's anti-cheat "debugging detected" kicked off, closing immediately with an error. lol I guess the x86_64 on arm64, even at the OS level, comes off as if it is using a debugger? I'm looking forward to future versions of Docker Engine on Mac OS X hopefully bundling a newer version of |
Super grateful for all of your help. You and I should work on something else together. Got any other ideas? :) Maybe you and I pair to make https://github.com/iximiuz/docker-to-linux work? Build the |
Yeah I've had fun trying to solve this issue - it's annoying not having an M1 Mac for testing but it's been great getting your feedback. I'd originally written off getting docker-wine to work on the new ARM CPUs, so even though it still failed for your use case at least I've got some options for other users to play with. I'll update the doco at some point to explain the various versions and their limitations plus give a breakdown of all the different tags in use now, so thanks heaps for your help! As for the docker-to-linux project, I'm not exactly seeing it as a viable alternative since it'll still need to be an ARM VM using qemu for x86 emulation and it's this emulation layer where we're hitting walls. Also, if you were wanting to automate the building of VM images, I'd just go with Hashicorp Packer and instantiate with Vagrant or something similar. If you come up with any more interesting ideas though, I'm happy to give it a go in my spare time 😃 |
I would say I slightly disagree. I think the wall we are hitting is Docker's use of What do you think? |
I agree qemu is the key. Docker to Linux seems interesting so I'll have to have a play with it before I make further judgement. |
Hey, is there any development or plans to finish this feature? I am trying to run x86 windows binaries on an Nvidia jetson and thought this could be an option. Currently running into the same segmentation fault error I saw in another issue. |
In relation to issue #109 - I'm using the hangover project to bridge the gap for ARM based Macs and other devices, so they can run a native ARM (arm64) docker image that is able to run x86 Intel (amd64) Windows binaries.