Hello. This is an old question. I’ve been looking around in there and in Linux Containers forum and the problem exists as per last July.
The thing is, I cannot run a docker container using the gpu inside an LXC container. The container has gpu accesible, you can run nvidia-smi and get the correct response and if you install the application directly it works and uses the gpu. But if you try to launch its docker container using the gpu resource it just can’t start. See
I understand that it would be fixed if I can use a privileged LXD with nvidia capabilities enabled, but it does not seem possible.
Im using snap LXD 5.15, ubuntu 22.04 container and last docker package installed in the container.
Any chance to get a docker container using gpu inside a LXC?