Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bluetooth integration in docker only works with root docker #36069

Open
effpeter opened this issue Nov 29, 2024 · 1 comment
Open

Bluetooth integration in docker only works with root docker #36069

effpeter opened this issue Nov 29, 2024 · 1 comment

Comments

@effpeter
Copy link

Feedback

A lot of people have issues discovering the bluetooth adapter when running HA in docker.
After a lot of troubleshooting I think I have tracked down the problem.
The dbus socket uses setuid/setgid, which is not supported/used when running docker in rootless mode.
I have found 2 workarounds:

  1. You need to start the container as root on the host system( sudo docker ...
  2. In theory the dbus system could be patched according to this: https://stackoverflow.com/questions/74748794/how-to-use-the-dbus-system-in-a-container-with-docker-root-less
    The first one works, I haven't tried the second method.

This should be mentioned in the documentation of the Bluetooth integration.

URL

https://www.home-assistant.io/integrations/bluetooth/

Version

2024.11.3

Additional information

No response

@home-assistant
Copy link

Hey there @bdraco, mind taking a look at this feedback as it has been labeled with an integration (bluetooth) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of bluetooth can trigger bot actions by commenting:

  • @home-assistant close Closes the feedback.
  • @home-assistant rename Awesome new title Renames the feedback.
  • @home-assistant reopen Reopen the feedback.
  • @home-assistant unassign bluetooth Removes the current integration label and assignees on the feedback, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information) to the feedback.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information) on the feedback.

@effpeter effpeter changed the title Bluetooth integration ín docker only works with robot docker Bluetooth integration ín docker only works with root docker Nov 29, 2024
@effpeter effpeter changed the title Bluetooth integration ín docker only works with root docker Bluetooth integration in docker only works with root docker Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants