Access host XServer from Docker container

1.2k Views Asked by At

My application running inside Docker container uses OpenGL for off-screen rendering.

If the container is running on host with graphics environment, it should use host's XServer for rendering.

I set up such container and it works perfectly on any system with mesa drivers installed (softpipe or nouveau) but does not work on a system with NVidia proprietary drivers.

How can I create docker container that is capable of hardware accelerated rendering (where possible) but is completely independent of actual graphics hardware installed in the system? Or I need different versions of containers for each graphics environment I may encounter?

0

There are 0 best solutions below