Hi! My server has an nVidia GPU which I use in a few docker containers that benefit from it (frigate, plex.) I recently upgraded from 23.11 to 24.05, and now I’m seeing this message when building:
trace: warning: You have set virtualisation.docker.enableNvidia. This option is deprecated, please set hardware.nvidia-container-toolkit.enable instead.
If I simply change virtualisation.docker.enableNvidia = true; to hardware.nvidia-container-toolkit.enable = true; in my config, then my GPU-enabled containers fail to start, with this error:
docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]].
I haven’t been able to find any documentation on this change - is there something I’m missing? Is there anything else I’m supposed to do to make this work?
I want to run InvokeAI with the docker-compose configuration, but cannot figure out how translate --device nvidia.com/gpu=all into this. Unchanged yaml is like
A word of warning to anyone running Portainer on their system.
For some reason running a container with this config causes your Portainer web UI to crash with following error:
panic: runtime error: index out of range [0] with length 0
Portainer will keep crashing until you stop the problematic container.
For now personally I’m gonna have to stick with virtualisation.docker.enableNvidia since hardware.nvidia-container-toolkit.enable looks to cause problems.