-
Notifications
You must be signed in to change notification settings - Fork 2k
OpenGL Support #11
Comments
I would love to help I used to have a Mac w Linux but don't anymore so I'm unsure how much help I can be with testing but I can give ideas has to how to have libs installed in a container and devices to mount |
Thank you, @jfrazelle! We haven't started working on this, I will update this issue when we do. |
@flx42 or @3XX0 , could you elaborate on the reasons behind this OpenGL issue. What details are currently missing or not supported that prevents even an traditional apt-get installed application within the container from using OpenGL. I admit I'm a bit unaware of inner workings of the graphics stack here, and am still curious. |
We have a basic plan on how things should work but quite frankly it's not a priority for us internally at the moment and it might take some time to implement. Dealing with OpenGL is tedious and doing it cleanly with proper buildtime/runtime separation is tricky. You have to take into account things like direct/indirect rendering, GLX/EGL, GL extensions and dispatching. Also our drivers change quickly and it's hard to keep up with their underlying OpenGL implementation. |
Actually, @jfrazelle I would love your insights on this one moby/moby#23917 |
Hello guys. I got a problem related to this issue today. I have the nvidia installed in my computer, more specifically the version 352.63. Below you'll find my workaround, maybe it could be useful for you.
The folders |
If anyone is looking here for solutions then I have a supposedly working setup documented here (tested quickly with |
Checkout the opengl branch, we have OpenGL over VNC there through VirtualGL. |
@3XX0 Thanks for the tip - any pointers on how to set up a VNC server in a Docker container once VirtualGL has been installed? I haven't had any luck adapting the containers I've used before - seems more complex than just adding |
It all depends on what you are trying to do. Generally I would recommend putting the VNC server on your host alongside the X server (at least that's how I did it). You can point the VirtualGL containers at whatever you like using See here and there to see how it works (just imagine containers on top of that). |
I seem to have OpenGL acc working using My full
Link to my dockerfile repo - mainly of interest are |
Hey, we need to run a Webbrowser inside of a Nvidia-docker container. The Solution with VirtualGL looks like it could work but I was not yet able to get GL-support inside of the docker-container. The newest Nvidia-driver is installed on the host-system . A "invalid-smi" tells me the docker-container has also recognized the GPU and has the newest driver installed. After finding your opengl-branch I build my setup on top of it, but I still can´t get it to work. Do I need to setup VirtualGl somehow? I hope you can help me with this. Best Regards |
We now have beta images for OpenGL on DockerHub: Those images are based on libglvnd for the OpenGL API calls dispatch. Dockerfiles are here: |
The images are not available as described. |
It's |
As mentioned by @3XX0 in #7 , OpenGL is not supported with the current framework, yet there is an ongoing discussion internally in Nvidia to enable it. This issues serves as a means for users to track progress or propose recommendations. May want to ask @jfrazelle for some ideas, I know she's experimented a good deal in OpenGL support for docker containers.
The text was updated successfully, but these errors were encountered: