aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsickcodes <[email protected]>2022-02-08 02:07:54 +0000
committerGitHub <[email protected]>2022-02-08 02:07:54 +0000
commit3621847c23cd6f27b355b198569cc8823d230a17 (patch)
treef9b0a6c08d0b91dc2b84b40925012eab343fdaaa
parentFix jack (diff)
parentREADME: add PulseAudio with WSLg (diff)
downloaddocker-osx-3621847c23cd6f27b355b198569cc8823d230a17.tar.xz
docker-osx-3621847c23cd6f27b355b198569cc8823d230a17.zip
Merge pull request #442 from routmoute/master
README: add PulseAudio with WSLg
-rw-r--r--README.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/README.md b/README.md
index 0a18d61..6f9e415 100644
--- a/README.md
+++ b/README.md
@@ -772,6 +772,17 @@ docker run \
sickcodes/docker-osx pactl list
```
+#### PulseAudio with WSLg
+
+```bash
+docker run \
+ --device /dev/kvm \
+ -e AUDIO_DRIVER=pa,server=unix:/tmp/pulseaudio.socket \
+ -v /mnt/wslg/runtime-dir/pulse/native:/tmp/pulseaudio.socket \
+ -v /mnt/wslg/.X11-unix:/tmp/.X11-unix \
+ sickcodes/docker-osx
+```
+
### Forward additional ports (nginx hosting example)
It's possible to forward additional ports depending on your needs. In this example, we'll use Mac OSX to host nginx: