Default Nvidia CDI spec location on rootless kit seems to be unaccessible #47676
Labels
area/rootless
Rootless mode
kind/bug
Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.
status/0-triage
Description
I originally opened an issue on the Nvidia-container-toolkit repo, but we figured the issue may actually be better placed here.
Original issue: NVIDIA/nvidia-container-toolkit#434 @elezar
The Issue
Testing rootless docker 26.0.0 with nvidia container toolkit and Nvidia CDI support, the CDI injection fails, presumably because docker cannot find the
nvidia.yaml
.The client is looking at
by default, but unlike the rootful version, rootless is unable to access the specs.
We tested this by moving the specs to another directory and specified the new location in the docker daemon.json:
Which seems to have solved the issue.
Reproduce
nvidia-ctk runtime configure --runtime=docker --cdi.enabled --config=$HOME/.config/docker/daemon.json
to enable cdi mode on rootlessCDI spec directories
location viadocker info
docker run --rm -ti --device=nvidia.com/gpu=all ubuntu nvidia-smi -L
Expected behavior
We expected the rootless client to be able to run native CDI injections by accessing the nvidia.yaml default location, or give an indication, that the default location is inaccessible to rootless:
docker version
docker info
Additional Info
No response
The text was updated successfully, but these errors were encountered: