253fd3006aaa0342f2b0d70f43fa84024151b487
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
Option one with WSLg (recommended)
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
Description
Languages
C++
95.9%
Makefile
3.3%
GLSL
0.6%
Shell
0.2%