-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Support for Docker for Mac #3
Comments
Hi - that would be awesome! Looking forward the PR :-) |
Thank you for this encouraging news, Takeno :) I'd love to help you test this whenever you're ready to share your configuration. |
I try to summarize the procedure:
|
Great! |
I tryed the 8 steps and get the folow error: wine: Call from 0x7b43bfcc to unimplemented function api-ms-win-core-winrt-roparameterizediid-l1-1-0.dll.RoGetParameterizedTypeInstanceIID, aborting Unhandled Exception: System.ComponentModel.Win32Exception: Error creating window handle. |
Almost working!! Now I can see the connection Icon, then this error in the terminal: X Error of failed request: BadValue (integer parameter out of range for operation) |
Thanks for the feedback. What was the error for the Win32Exception? |
Is working now, I just started again doing the same that I was doing... I used exactly this commands (I made a run.command file here): if= xhost + $ip open -a XQuartz socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:"$DISPLAY" & docker kill mtgo_running |
The persistency is discussed in issue #6 - we have a working solution, although it requires the run-mtgo script which still need to be tweaked for Mac OS X.
Feel free to adapt the script until it works, and let me know of the changes. |
@Takeno @estudiogenius could you try the run-mtgo script on the git - https://raw.githubusercontent.com/pauleve/docker-mtgo/master/run-mtgo? My only Mac OSX is within a VirtualBox so I cannot test docker... |
A few notes from me trying to run it on macOS Sierra with the very latest Docker, XQuartz, etc:
The output in the terminal is simply:
Not really sure how to diagnose or debug any further from here. |
Many thanks for this precious feedback. Duly noted for getopt, maybe I should switch to bash builtin getopts and a trick to handle long options. In the meantime, we can just add gnu-getopt as an additional requirement (and I add a detection in the script). Regarding timezone detection, I think I found a way using the symlink /etc/localtime To further debug the X output, you could try the following:
(following @estudiogenius comment)
might provide you some clues... |
Thanks for the super-quick feedback!
Hope this helps. I don't really know X well enough to have much intuition at this point about what |
Awesome, thanks! |
Whoo! Strong progress! With no other tweaks except The bad news is, what showed up is a prompt to install .NET 4.5.2 (which I had assumed was already baked into the image?), and when I accepted, it downloads a file and then promptly crashes with:
Full stack trace from the Windows crash dialog is:
This happens even after I clear out the |
Regarding ip=127.0.0.1, indeed, after some googling, it appears that docker for mac does not really honour I changed the ip in the run-mtgo to be the one of en0, as initially suggested by @Takeno . Regarding .NET this should not happen. Try with |
OK, got a little further than before. After it asks for agreement on .Net EULA, and I click "Agree" it throws an error. Here is the ./run-mtgo output.
It also spewed out a "Windows" error. Do you want those details too? |
Ran with --reset and just got a bit further. MTGO installs, then "opens", but the screen seems is unresponsive and "darker". Bottom left says "Disconnected". |
Thanks for the feedback! Regarding the second comment, did you manage to see (and accepts) MTGO license? |
Did find a hitch in the setups given, you need to update the security settings on XQuartz which defaults to block network connections. But after I fixed that I got X applications to launch on Docker for Mac |
Running with
|
This is strange as neither wine nor Xorg/Xquartz have any code using this env variable :-) |
QT_X11_NO_MITSHM is (in theory, aka "according to StackOverflow") supposed to be picked up by X server, but I'm no expert. Updating the I've also added the following (to no avail, alas):
|
But has it prevented any further X error request? Because QT_X11_NO_MITSHM is understood only by clients using Qt library only (there is a similar switch for Java, but not for wine..). |
Yeah, there's no Qt involved, that's just late night googling and trying :allthethings: I cannot for the life of me find a xorg.conf to edit to update Xserver on macOS with the Section "Extensions" options |
Let's give a try to disabling shm in wine: I did the patch, let me know if you still get a XShm related crash using the following command:
There should be some "DISABLED_XSHM" messages in the console. |
@pauleve This pretty much resolves all the issues. (It does spit out a LARGE number of "DISABLED_XSHM", but that's fine). Thank you so much! |
Awesome. Thanks a lot for the debugging! |
Tried the new version (optshm works) and getting weird stuff:
Full log mtgo_docker.log |
It looks like |
Good old sleep. That actually DOES fix the issue. |
For those of MacOS X users like me:
Struggled for an hour or so, until I actually googled the error 'socat[...] E connect(...): Connection refused' and found this gem. Restarted MacOS and here it is Restart MacOS after XQuartz install |
Hi,
Any idea on that? Looking forward to use it Best Regards, Hilmar |
|
@HilmarDemant thanks for the feedback. To try the suggestion of @theli-ua , you have to run Regarding mtgo client, it should be persistent. Do you have any error related to docker volume in the output? You can also try doing once |
the winetricks didnt have any effect for me, but the emulate virtual desktop via winecfg looks better and faster overall. with the --reset option i still see a bunch of log entries like this: |
I have just downloaded attempted to run this on a dockerless, WINEless OS X 10.11.6 system and upon fresh install of everything with the latest ./run-mtgo script, I get: I am very interested in getting this running, am available for testing. Thanks! |
Hi, I am totally new to docker. I was able to get MTGO running on my mac using docker image. However, it is really choppy and slow (not sure if this can be resolved). I am also trying to get loaded on Ubuntu 16.04 but I am running into an error when I try to pull panard/mtgo. I keep getting: docker pull panard/mtgo:latest Any information about this would be helpful. |
Hi,
On macOS, docker uses virtualization which requires some very recent hardware to run smoothly. You can have a try to installing wine for MTGO directly, without the docker layer, see instructions here: |
Just tried this and am getting a bunch of error output and then it just hangs. macOS: High Sierra v10.13.2 output
Output
I don't know anything about running XQuartz, but the first thing I notice is the line
the |
@robertjlooby the missing $DISPLAY is definitely the issue. Do you mean that, in Terminal, if you do
DISPLAY is empty? |
Yes, XQuartz starts and opens up an xterm window but it doesn't set the
Inside the xterm window in XQuartz though, it is set
|
Have you rebooted? Apparently this is necessary to have the DISPLAY set globally.. |
That was it! It works after restarting. Thank you! 🎉 |
I close this global issue - if you have any problem running docker-MTGO on macOS, please open a dedicated issue. |
Hi,
I'm really interested to this work.
I'm trying to get it to work on Docker for Mac and I'll be happy to send a PR with documentation ;)
For now, some references:
moby/moby#8710
https://gist.github.com/92bondstreet/3557c6187c28746fcf6e2fcef49b5d51
https://stackoverflow.com/a/28395350
The text was updated successfully, but these errors were encountered: