Audio (via Pulseaudio) inside Container

Try installing pulseaudio-utils and dbus-user-session inside container:

sudo apt install pulseaudio-utils dbus-user-session

As for the command:

  • bind is on the instance side, so listen is for the container side and connect for the host side
  • security.uid and security.gid is set to your user’s uid/gid on the host
  • uid and gid is set to your user’s uid/gid inside the container

If sound still doesn’t work, see Troubleshooting section, where you can find information about pulseaudio cookie and how to copy it to the container.

1 Like