Steam-Headless / docker-steam-headless

A Headless Steam Docker image supporting NVIDIA GPU and accessible via Web UI
GNU General Public License v2.0
737 stars 80 forks source link

[Bug]: using 'runtime: nvidia' in docker compose results in "container exited with code 8" #20

Open dennispg opened 1 year ago

dennispg commented 1 year ago

Describe the Bug

I have Nvidia driver version 520.61.05 installed on my host, and I have installed the nvidia-docker2 package on the host as well. This mounts the matching Nvidia driver into the container for me and removes the need to install the driver again inside the container.

The problem is, the 60-configure_gpu_driver.sh init script in the container tries to download the matching driver from http://download.nvidia.com/XFree86/Linux-x86_64 and my particular version is not available there. The wget call fails with exit code 8 because of the 404 error. Interestingly, in the script there is some error handling that should output "Error downloading driver. Exit!" but I don't see that and instead the container just stops right there. Heres the last few lines from the log:

steam  | [ /etc/cont-init.d/60-configure_gpu_driver.sh: executing... ]
steam  | **** Found NVIDIA device 'NVIDIA GeForce GTX 1050' ****
steam  | Downloading driver v520.61.05
steam exited with code 8

I'm not really sure why the error handling is not working there.

But more than that, would it be possible to add a flag that tells this init script to not bother with trying to download and install the drivers at all?

Thanks!

Steps to Reproduce

No response

Expected Behavior

No response

Screenshots

No response

Relevant Settings

No response

Version

Build: [2022-11-05 03:35:09] [master] [9b962580ff02f02dcd8239166f9d1ab6cae188bd]

Platform

Distribution: Debian GNU/Linux - 11 (bullseye) Linux Kernel: 5.15.64-1-pve unknown unknown GNU/Linux GPU Driver versions: NVIDIA-SMI 520.61.05 Driver Version: 520.61.05 CUDA Version: 11.8 Docker: Docker version 20.10.21, build baeda1f Docker-compose: Docker Compose version v2.12.2

Relevant log output

steam  | [ /etc/cont-init.d/60-configure_gpu_driver.sh: executing... ]
steam  | **** Found NVIDIA device 'NVIDIA GeForce GTX 1050' ****
steam  | Downloading driver v520.61.05
steam exited with code 8
Josh5 commented 1 year ago

I could do that. But the games will not run with the Nvidia card if you don't install the matching drivers

Josh5 commented 1 year ago

My suggestion would be to run the older version on your host until such a time as the driver is available for the container.

Josh5 commented 1 year ago

Oh wait, sorry I see what you are saying. I did not know such a thing existed. I'll look into it