I’m running an Unreal Engine 5.6 packaged Linux build inside a Docker container based on nvidia/cuda:12.4.1-runtime-ubuntu22.04. When launching the app, I get this error:
LogVulkanRHI: Error: vpCreateInstance failed, VkResult=-9 (VK_ERROR_INCOMPATIBLE_DRIVER)
I’ve installed libvulkan1 and vulkan-tools inside the container and I’m launching with xvfb-run. However, Vulkan fails to initialize.
Dockerfile snippet:
FROM nvidia/cuda:12.4.1-runtime-ubuntu22.04
RUN apt-get update && apt-get install -y libvulkan1 vulkan-tools xvfb
ENV NVIDIA_VISIBLE_DEVICES=all
ENV NVIDIA_DRIVER_CAPABILITIES=all
CMD ["xvfb-run", "-a", "./AI_Assistant.sh"]
Run command:
docker run -it --gpus all --runtime=nvidia unreal-vulkan
The host machine has NVIDIA drivers and Vulkan working correctly (vulkaninfo runs fine outside Docker). I’m trying to understand why Vulkan isn’t initializing inside the container or how to make Unreal detect the correct Vulkan ICD.