Ubuntu Docker: could not select device driver “nvidia”

Pinguin sitting on the whale



When I tried to install Stable Diffusion that was wrapped to docker image, I faced next error: Error response from daemon: could not select device driver “nvidia” with capabilities: [[compute utility]] ..

To resolve this you need to install nvidia-container-toolkit

Append NVIDIA repository

update packages information and install toolkit

After that append configuration to docker

and restart it

Resources

Nvidia Documentation: https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html

You May Also Like

About the Author: vo