Render OpenGL to NVIDIA headless Xorg inside a Docker container and forward to your remote X server using VirtualGL
- Linux machine with NVIDIA GPU and drivers
- Docker
- nvidia-docker
- VirtualGL client
- X server on client machine
$ docker build -t nvidia-xorg-virtualgl-docker .
$ ./run.sh YOUR-DOCKER-ARGS nvidia-xorg-virtualgl-docker vglrun YOUR-GUI-APP
This will launch an internal Xorg server at headless display :0 where VirtualGL renders the OpenGL content
and forwards already rendered OpenGL content to remote X server connected via VirtualGL's vglconnect
SSH tunnel.