Files
Cheap-Vulkan-Renderer/README.md
2026-02-20 13:38:05 +00:00

735 B

Most linux distros

To build the container

docker build -t vulkan-dev .

To run the container

sudo docker run -it \
  --device /dev/dri \
  -e DISPLAY=$DISPLAY \
  -v /tmp/.X11-unix:/tmp/.X11-unix \
  -v "$(pwd)":/workspace \
  vulkan-dev

To enable X11 access:

xhost +local:docker

Windows

To build the container (in powershell)

docker build -t vulkan-dev .

To run it

docker run -it \
  -v "$(pwd)":/workspace \
  vulkan-dev

Option two with VcXsrv

Set display in powershell: $env:DISPLAY="host.docker.internal:0.0" Run container:

docker run -it `
  -e DISPLAY=host.docker.internal:0.0 `
  -v ${PWD}:/workspace `
  vulkan-dev

Not working