How to get vulkan working on a ubuntu20.04 docker container

hello,

Can anyone point me in the right direction on how I would run a Vulkan application inside a docker container?

I am using nvidia/cuda:11.6.–base-ubuntu20.04 as base image but I am not able to get Vulkan working, I got the following error:

vulkan@dolores:/# vulkaninfo
Segmentation fault (core dumped)

thanks in advance,

you need install libvulkan-dev

if you are running it inside a docker container, then you need to connect your docker instance to a X11 server in you host and forward your display to docker

docker run -e DISPLAY=localhost:0

you need to install X11 server software, like XMing X server or Cygwin/X or VcXsrv or XQuartz

and make sure that X11 server is running and working

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.