NVIDIA / nvidia-docker

Build and run Docker containers leveraging NVIDIA GPUs
Apache License 2.0
17.17k stars 2.03k forks source link

Unable to get container to use nvidia graphics resources. System : Ubuntu22.04 #1767

Closed MoAccelerator closed 8 months ago

MoAccelerator commented 11 months ago

I installed nvidia-driver-535, nvidia-docker2, nvidia-container-runtime, cuda12.2, but my docker container still can't invoke GPU resources. And I used the Debian11 system before and installed nvidia-driver-470, nvidia-docker2, nvidia-container-runtime. The docker container cannot invoke GPU resources either. My graphics card uses HDMI interface and DP interface.

I don't know exactly where the problem is, I hope someone can help me find the cause of the problem, Thanks. image image

MoAccelerator commented 11 months ago

I have reinstalled the system more than ten times. I make sure my system environment is very clean.

elezar commented 8 months ago

You nvidia-smi command run in the container seems to indicate that you are able to access the GPU in the container.

If you're still having problems, please open a new issue against https://github.com/NVIDIA/nvidia-container-toolkit