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
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