hi! I'm trying to use Vulkan in a Docker container. On my host, Vulkan works fine.
I'm using Ubuntu 22.04.
I'm using NVIDIA 535.129.03 drivers.
I have a Tesla T4 GPU.
I'm using container toolkit 1.14.1, and inside my containers nvidia-smi works fine. I've installed Docker using the docker.com instructions and have set up the container runtime.
In a Ubuntu container started with:
sudo docker run -it --env NVIDIA_DRIVER_CAPABILITIES=all --rm --runtime=nvidia --gpus all ubuntu
if I run apt install vulkan-tools libxext6 and then vulkaninfo I see
ERROR: [Loader Message] Code 0 : loader_scanned_icd_add: Could not get 'vkCreateInstance' via 'vk_icdGetInstanceProcAddr' for ICD libGLX_nvidia.so.0
and no GPU is listed. This is additionally the case on nVidia drivers as old as 470 (but with container toolkit 1.14.1).