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

37 lines
735 B
Markdown

# Most linux distros
## To build the container
`docker build -t vulkan-dev .`
## To run the container
```sh
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)
```sh
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:
```sh
docker run -it `
-e DISPLAY=host.docker.internal:0.0 `
-v ${PWD}:/workspace `
vulkan-dev
```
Not working