dialout user is GID 20 in the container, while in some host OS's is 18 (permissions error on /dev/ttyUSB0) #394
dragonsahead
started this conversation in
Show and tell
Replies: 1 comment
-
|
You can use the Docker services:
weewx:
image: ghcr.io/felddy/weewx:5
user: 1000:18
volumes:
- type: bind
source: ./data
target: /data
devices:
- /dev/ttyUSB0Let me know if that works for you. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
🐛 Summary
Spent many hours debugging this, and seems that the GID in HASSIO is 18 so when mapping a device to a container it will return permissions error
To reproduce
Expected behavior
Either change the GID to 18 (you need to do a custom build), or run with the env var WEEWX_GID = 18 (weird workaround, but works)
(wanted to leave this here in case someone hits the issue)
Beta Was this translation helpful? Give feedback.
All reactions