back NVIDIA docker images on Debian Bullseye workaround

publication: janeiro 30 2021 19:44
last update: janeiro 30 2021 19:44

Until the problem is fixed, use the workaround below.

Edit the file /etc/nvidia-container-runtime/config.toml and set

no-cgroups = true  
ldconfig = "/usr/sbin/ldconfig.real"

Running a container:

docker run --gpus all -it --rm \
    --device /dev/nvidia0:/dev/nvidia0 \
    --device /dev/nvidiactl:/dev/nvidiactl \
    --device /dev/nvidia-modeset:/dev/nvidia-modeset \
    --device /dev/nvidia-uvm:/dev/nvidia-uvm \
    --device /dev/nvidia-uvm-tools:/dev/nvidia-uvm-tools \

to test, run nvidia-smi on the container.


get in touch