I’ve downgraded nvidia-container-toolkit, libnvidia-container and libnvidia-container-tools, but it didn’t help. Any ideas what could be the root cause?
Thanks for hint. As I’m testing more, it seems that there is a problem with installation of OpenGL on top of nvidia/cuda:11.4.2-devel-ubuntu20.04 image, in this case it doesn’t work.
As I run with nvidia/opengl:1.2-glvnd-devel-ubuntu20.04:
docker run --gpus all --rm -it -v /dev:/dev --net=host -e DISPLAY=:0 --privileged=true nvidia/opengl:1.2-glvnd-devel-ubuntu20.04 bash
GL app runs as should. So probably I should install CUDA on top of NVIDIA OpenGL image. I’ll check it.
Thanks for hint. As I’m testing more, it seems that there is a problem with installation of OpenGL on top of nvidia/cuda:11.4.2-devel-ubuntu20.04 image
Right, CudaGL solves my issue, I didn’t notice this type of image.
Still don’t know why previously it worked on pure CUDA image, maybe something changed in my code as I merged git branches, I’ll try to investigate it more. Fortunately, it works now