Run pulseaudio in a Docker container
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
Andy 0c34af15ec
trivial
6 yıl önce
Dockerfile trivial 6 yıl önce
LICENSE changed license; changed exit idle time; add security_opt seccomp parameter 8 yıl önce
README.md trivial 6 yıl önce
avahi-daemon.conf build pulseaudio from sources 6 yıl önce
client.conf build pulseaudio from sources 6 yıl önce
daemon.conf build pulseaudio from sources 6 yıl önce
default.pa build pulseaudio from sources 6 yıl önce
entrypoint.sh build pulseaudio from sources 6 yıl önce

README.md

Pulseaudio in Docker

Build and run it

docker build -t andrey01/pulseaudio .
docker run --name pulseaudio --rm -ti --device /dev/snd andrey01/pulseaudio

Use it

PULSE_SERVER=$(docker inspect pulseaudio -f '{{.NetworkSettings.IPAddress }}'):4713 mpv film.avi

Client setup for zeroconfig auto discovery

If you want the pulseaudio to automatically discover the published sinks, make sure /etc/pulse/default.pa has the following line:

load-module module-zeroconf-discover

Then restart pulseaudio:

pulseaudio --kill

Troubleshooting

Enter the namespace of a running container

sudo nsenter -a -t $(docker inspect -f '{{ .State.Pid }}' pulseaudio)