-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[Problem]: Rootless Docker not working #10690
Comments
I fail to see how this is a problem with Zigbee2MQTT Like, if you want to run your container as nonroot, it's up to you to grant the container's effective UID permissions access to the serial port, like maybe by using ACLs. You'll note that your user in the host system is a member of the dialout group. Which is likely what's granting it access. |
Sorry, but I don't get your message. The permissions on the host system match as seen in the debug logs. Or did I miss something? |
It actually looks like the group is not set in the container. docker/compose#8987 fixes this behaviour :) |
Hello, I'm having the same issue as @thueske:
In my case, I can confirm that the After some troubleshooting and research on the web, I've found that my issue is actually caused due to this situation: moby/moby#43019 as I am running Docker daemon as a non-root user So as @ruifung has mentioned, it's not really a problem of Zigbee2MQTT. Until it gets fixed, I'll be using this guide https://www.xmodulo.com/change-usb-device-permission-linux.html to set the permissions of the device to 666 on boot, so that later Zigbee2MQTT can access it! I am doing this reply as I believe it could be helpful for someone having the same issue. For reference, my specs are:
|
What happened?
I tried running Zigbee2MQTT as a rootless Docker container. Unfortunately, the container does not start correctly because it does not have access to the corresponding Zigbee device.
What did you expect to happen?
I expected the container to start with no root privileges or errors.
How to reproduce it (minimal and precise)
Start the compose file:
Zigbee2MQTT version
1.22.2
Adapter firmware version
0x26720700
Adapter
Conbee II
Debug log
Container:
Host-System:
The text was updated successfully, but these errors were encountered: