Cuda docker container run error - Fedora

Hi everyone, I’m trying to run a docker container using cuda by doing:

sudo docker run --privileged --gpus all --rm nvidia/cuda:11.1-base nvidia-smi

but I’m getting this error:

If I run the command: nvidia-container-cli info it results:

NVRM version: 470.63.01
CUDA version: 11.4

Device Index: 0
Device Minor: 0
Model: NVIDIA GeForce RTX 3060 Laptop GPU
Brand: GeForce
GPU UUID: GPU-22c8c3b3-40fd-077d-df9d-ea703252d8a2
Bus Location: 00000000:01:00.0
Architecture: 8.6

How do I fix this?

Hello, and welcome to the CUDA-GDB forum. This forum is dedicated to discussions related to debugging with CUDA-GDB. Questions related to Docker can be raised at Docker and NVIDIA Docker - NVIDIA Developer Forums.