Could not select device driver "" with capabilities: [[gpu]]

Please provide complete information as applicable to your setup.
• SO Ubuntu 22.04
• Hardware Platform (Jetson / GPU) RTX A4000
• DeepStream Version 6.2
• nvidia-smi
±--------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.54.03 Driver Version: 535.54.03 CUDA Version: 12.2 |
|-----------------------------------------±---------------------±---------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+======================+======================|
| 0 NVIDIA RTX A4000 Off | 00000000:01:00.0 On | Off |
| 41% 40C P8 11W / 140W | 177MiB / 16376MiB | 8% Default |
| | | N/A |
±----------------------------------------±---------------------±---------------------+

±--------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| 0 N/A N/A 1257 G /usr/lib/xorg/Xorg 90MiB |
| 0 N/A N/A 1543 G /usr/bin/gnome-shell 79MiB |
±--------------------------------------------------------------------------------------+

I successfully made a docker pull from nvcr.io/nvidia/deepstream:6.2-devel and I am trying to run a simple hello world from GitHub - NVIDIA-AI-IOT/deepstream_python_apps: DeepStream SDK Python bindings and sample applications.

I have done it several times im a Jetson, but this is the first time on a ordinary host with GPU board and docker. How do I override the following error?

user@user-Default-string:~/test$ sudo docker run -it --gpus all -v /home/user/test:/test nvcr.io/nvidia/deepstream:6.2-devel python3 deepstream_test_1.py /home/user/test/sample/sample_1080p_h264.mp4
docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]].
ERRO[0000] error waiting for container: context canceled

It looks like docker is missing some components
Can you try the following command?

sudo apt-get update
sudo apt-get install -y nvidia-container-toolkit
sudo systemctl restart docker

Here is same error as yours

Thanks

1 Like

Don’t know why, but I had to add an nvidia-ctk to your tip, and then worked fine.

sudo apt-get update
sudo apt-get install -y nvidia-container-toolkit
sudo nvidia-ctk runtime configure --runtime=docker
sudo systemctl restart docker
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.