openhab / openhab-docker

Repository for building Docker containers for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
209 stars 128 forks source link

Add docker user to audio group in entrypoint #397

Closed Cybso closed 2 years ago

Cybso commented 2 years ago

entrypoint should be extended with "adduser openhab audio" (exists as predefined group in debian image).

Otherwise openhab will not be able to play audio even if the host user has been added to the audio group and the device /dev/snd has been binded to the container.

See also https://community.openhab.org/t/solved-unable-to-play-audio-in-rule-when-using-docker/80170, which has been marked as resolved although the problem had not been fixed for anyone but the author.