From 142dad2593ae56f0c1383e579f8058f567236c58 Mon Sep 17 00:00:00 2001 From: routmoute Date: Tue, 1 Feb 2022 11:19:08 +0100 Subject: [PATCH] README: add PulseAudio with WSLg --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) 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: