devbis / ble2mqtt

Bluetooth to MQTT bridge, add your bluetooth-capable (including controllable) devices to your smart home
MIT License
125 stars 26 forks source link

Run ble2mqtt executable rootless inside the container #58

Closed stefan-golinschi closed 10 months ago

stefan-golinschi commented 10 months ago

Added rootless user in order to make zigbee2mqtt container compatible with podman setups. This makes it possible to pass dbus UID authentication by using the podman user uid/gid.

For now, the rootless user id / group id are hardcoded in the Dockerfile. A future improvement should be done here: dynamically adjusting the permissions using an env variable.

Also, running ble2mqtt as rootless user, improves security for docker users.

Please read this discussion about using bluetooth via dbus in a rootless container: 16772

stefan-golinschi commented 10 months ago

Also, I have tested this on

devbis commented 10 months ago

Thanks!