OpenGL acceleration with Docker #395
-
Has anyone managed to get an OpenGL accelerated Docker container running behind WSLG?
I've tried this config with both Docker Desktop (which runs Docker in its own WSL2 distro), and Docker installed directly in my WSL2 Ubuntu 20.04 distro, but the results are identical either way. Any help would be greatly appreciated :) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
For GPU support inside the container from the command line you need to run docker with the argument |
Beta Was this translation helpful? Give feedback.
-
The team just posted a sample of a container with accelerated OpenGL. https://github.com/microsoft/wslg/tree/main/samples/container After looking at that this worked for me:
I guess the most important part was using the env variable LD_LIBRARY_PATH=/usr/lib/wsl/lib |
Beta Was this translation helpful? Give feedback.
The team just posted a sample of a container with accelerated OpenGL.
https://github.com/microsoft/wslg/tree/main/samples/container
After looking at that this worked for me:
I guess the most important part was using the env variable LD_LIBRARY_PATH=/usr/lib/wsl/lib