monadplus / elgato-keylight

Elgato Key Light Controller for Linux
MIT License
4 stars 0 forks source link

Discover devices doesn't work on Docker #4

Open monadplus opened 1 month ago

monadplus commented 1 month ago
➜ arnau elgato-keylight (async-discovery) ✗ docker run -it --entrypoint /usr/local/bin/elgato-keylight-discover elgato-keylight:latest
Error: avahi-browse error: No such file or directory (os error 2)
➜ arnau elgato-keylight (async-discovery) ✗ docker run --rm -it --entrypoint /bin/bash elgato-keylight
root@0b3793dbbc39:/app# avahi-daemon
Found user 'avahi' (UID 101) and group 'avahi' (GID 102).
Successfully dropped root privileges.
avahi-daemon 0.8 starting up.
dbus_bus_get_private(): Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
WARNING: Failed to contact D-Bus daemon.
avahi-daemon 0.8 exiting.
root@0b3793dbbc39:/app# avahi-browse
bash: avahi-browse: command not found
monadplus commented 1 month ago

Mount dbus socket on container https://github.com/mviereck/x11docker/wiki/How-to-connect-container-to-DBus-from-host