Skip to content

Commit 3621847

Browse files
authored
Merge pull request #442 from routmoute/master
README: add PulseAudio with WSLg
2 parents b0ac21a + 142dad2 commit 3621847

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -772,6 +772,17 @@ docker run \
772772
sickcodes/docker-osx pactl list
773773
```
774774

775+
#### PulseAudio with WSLg
776+
777+
```bash
778+
docker run \
779+
--device /dev/kvm \
780+
-e AUDIO_DRIVER=pa,server=unix:/tmp/pulseaudio.socket \
781+
-v /mnt/wslg/runtime-dir/pulse/native:/tmp/pulseaudio.socket \
782+
-v /mnt/wslg/.X11-unix:/tmp/.X11-unix \
783+
sickcodes/docker-osx
784+
```
785+
775786
### Forward additional ports (nginx hosting example)
776787

777788
It's possible to forward additional ports depending on your needs. In this example, we'll use Mac OSX to host nginx:

0 commit comments

Comments
 (0)