$ docker run kdockerfiles/pulseaudio
If you want the server to be able to see your physical sound interface(s), you should add
--device /dev/snd to the
docker run command.
/tmp/pulse: Contains PulseAudio UNIX socket file (named
/usr/local/etc/pulse: Contains PulseAudio configuration files.
Most notably including
client.conf, which should be exposed to any client application that wants to connect to the PulseAudio server.
As it is now, only applications that are inside of group
0) will be able to connect to the server. This works for me for now, but might change in the future.
There is currently no
udev support, which means that your sound interface(s) must be already connected to the host at the time the container starts. This is simply because I couldn't get PA's udev module to work inside Docker (and I don't need it, so I gave up for now). Suggestions/PRs welcome.