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, solisten
is for the container side andconnect
for the host sidesecurity.uid
andsecurity.gid
is set to your user’s uid/gid on the hostuid
andgid
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.