Proxy Bluetooth on RBP4 to HA Container (with docker compose)

In case anyone stumbles upon this thread trying to solve bluetooth issues.
If you run HA containers in docker rootless mode, dbus doesn’t seem to be working.
so try running HA with sudo docker compose up
This is what led me on the right path: Docker: Unable to Setup Bluetooth/D-Bus - #8 by Levantha

/etc/subuid and /etc/subgid are files based on which docker remaps user and group ids, but more importantly my guess the root cause is this:

Rootless mode does not use binaries with SETUID bits or file capabilities, except newuidmap and newgidmap, which are needed to allow multiple UIDs/GIDs to be used in the user namespace.
Rootless mode | Docker Docs

2 Likes