-
Notifications
You must be signed in to change notification settings - Fork 599
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
Running the malmo client as a docker container and with the gui enabled #644
Comments
I think the easiest option is to share X11 socket with the container, as done here: |
@tambetm : Ya I tried that before actually. Didn't work for me. I found and tried a few other solutions from the internet as well but no luck. My guess is it had something to do with me trying this on a mac and not linux. And finally only this worked: https://cntnr.io/running-guis-with-docker-on-mac-os-x-a14df6a76efc. But then I tried this solution for the Malmo docker image but that throws up a different error now. |
What's the error you are getting? |
Here's the trace I'm looking at:
|
I did some searching and landed here: LWJGL/lwjgl#129 (comment). This might be the issue? But I'm not entirely sure. |
That certainly looks like the issue, thanks for investigating! I've been looking into updating the version of LWJGL Minecraft uses - in fact, we have an issue in about this exact thing (see #642) - it should be possible... I think... will keep you posted. |
Awesome. Thanks a lot! |
Okay, have been digging. See my comment on #642. The simplest option is probably to build lwjgl yourself from source - see here - https://github.com/LWJGL/lwjgl - and then work out where to copy the relevant files - though I've been scratching my head about this too. On Windows, if you download and run Minecraft proper, the files all seem to be kept in The good news is that Minecraft 1.12 made the switch to lwjgl 3, so when we update Malmo to the latest Minecraft, this problem will go away. Hopefully we'll have time to do this in the new year. |
@prashant-jayan21 were you able to get it to run headless without any issues? seems that fails too for me |
There is now a VNC enabled docker image that you can use to remotely display Minecraft from a docker container: https://github.com/Microsoft/malmo/blob/master/scripts/python-wheel/README.md |
Bump on trying to get malmo work from a docker container in mac? This is the issue that I get:
I already tried downgrading my XQuartz, and enabling glx per the instructions: https://www.scm.com/doc/Installation/Remote_GUI.html |
We have two example docker builds. One with no visuals (e.g. scripts/docker/build_ubuntu1604_python3.dockerfile using xpra where xpra is started up in build.sh with "xpra start :100; export DISPLAY=100) and a pre build docker image (see https://github.com/Microsoft/malmo/blob/master/scripts/python-wheel/README.md build with scripts/docker/install_console_ubunut1604_python3.dockerfile and console_startup) using VNC that can be viewed in any browser. You could follow these build script / startup script examples. Or just start you docker build with andkram/malmol image). |
This is in reference to https://github.com/Microsoft/malmo-challenge/tree/master/docker. Is there a way to run the malmo client as a docker container and at the same time displaying it on the host machine's screen? Basically I don't want to run the client headless but in the usual way (with the gui). I found quite a bit of information on the former but nothing on the latter.
Our use case is using Malmo as a platform for collecting data from users in a certain setting. We need to run the system on a few random users' machines for this purpose and that's why being able to have the gui aspect is important.
I have a Mac machine I'm trying this on and am having a real hard time figuring this out. Any help would be really appreciated!
The text was updated successfully, but these errors were encountered: