Skip to content

Commit 2a6596d

Browse files
committed
Update Docker example with fixed window size
Signed-off-by: Joachim Wiberg <[email protected]>
1 parent 2e7907c commit 2a6596d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,19 @@ docker run --rm -it \
9696
ghcr.io/kernelkit/demo:latest
9797
```
9898

99+
**With specific window size:**
100+
101+
```bash
102+
# Useful if container detects wrong screen dimensions
103+
docker run --rm -it \
104+
-e DISPLAY=$DISPLAY \
105+
-v /tmp/.X11-unix:/tmp/.X11-unix \
106+
-e SDL_AUDIODRIVER=pulseaudio \
107+
-e PULSE_SERVER=unix:${XDG_RUNTIME_DIR}/pulse/native \
108+
-v ${XDG_RUNTIME_DIR}/pulse/native:${XDG_RUNTIME_DIR}/pulse/native \
109+
ghcr.io/kernelkit/demo:latest -w 1920x1080
110+
```
111+
99112
**Or use docker-compose:**
100113

101114
```bash

0 commit comments

Comments
 (0)