You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
703 B

## Pulseaudio in Docker
8 years ago
6 years ago
Build and run it
8 years ago
```
6 years ago
docker build -t andrey01/pulseaudio .
docker run --name pulseaudio --rm -ti --device /dev/snd andrey01/pulseaudio
8 years ago
```
6 years ago
Use it
```
PULSE_SERVER=$(docker inspect pulseaudio -f '{{.NetworkSettings.IPAddress }}'):4713 mpv film.avi
```
6 years ago
## 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
8 years ago
```
sudo nsenter -a -t $(docker inspect -f '{{ .State.Pid }}' pulseaudio)
8 years ago
```