Open maxpain opened 1 year ago
I imagine with Nvidia container support it could work
I got it working by first installing NVIDIA drivers inside the docker image (version has perfectly match nvidia drivers version in the host system) and then running it as
docker run -t -i --rm --init --name steam \
-v /dev/dri:/dev/dri \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v /dev/shm:/dev/shm \
-v /tmp/pulse-socket:/tmp/pulse-socket \
-v /run/user/${UID}/pulse:/run/user/${UID}/pulse \
-v /etc/machine-id:/etc/machine-id \
-v /home/aleh/work/steam/steam-home:/home/steam \
-v /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket \
--privileged=true \
-e DISPLAY=${DISPLAY} \
-e __NV_PRIME_RENDER_OFFLOAD=1 \
-e __VK_LAYER_NV_optimus=NVIDIA_only \
-e __GLX_VENDOR_LIBRARY_NAME=nvidia \
steam-mine \
Hi. Have you managed to run any game on GPU inside a docker container?