This guide explains how to play audio and send desktop notifications from a Debian- or Ubuntu-based container to a native Linux desktop host.
The setup shares two UNIX sockets from the host desktop session:
- The PulseAudio socket, or PipeWire’s PulseAudio-compatible socket, for audio playback
- The session D-Bus socket for desktop notifications
A Python verification script checks the socket mounts, sends a test notification, generates a short WAV tone, and plays it through the host audio server.