Skip to content

jperraud/pulseaudio-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pulseaudio-docker

This is a minimal working example of a Docker Image with PulseAudio Server that runs on a host machine that does not run a PulseAudio server.

How To Use

  1. Build the image with:
$  docker build . -t pulseaudio-docker:0.0.1
  1. Start the container with:
$  docker run 
    -v /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket
    --security-opt apparmor:unconfined
    --device /dev/snd:/dev/snd 
    -it pulseaudio-docker:0.0.1
  1. Execute command(s) that access audio resources, e.g.:
# On Host
$ docker exec -it <containerID> speaker-test

# or from within the container
$ speaker-test

Important:

  • If you run the container on a machine with an active PulseAudio server, make sure you stop it before starting the container:
# On host
$ pulseaudio --kill
  • If debugging is required, launch the PulseAudio server with:
$ pulseaudio --start --exit-idle-time=-1 --daemonize=no -vvvv

for additional debugging information.

About

Minimal Docker Image with PulseAudio Server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published