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

Can't open device /dev/ttyUSB0 #2

Closed
Benny-Git opened this issue Oct 7, 2020 · 1 comment
Closed

Can't open device /dev/ttyUSB0 #2

Benny-Git opened this issue Oct 7, 2020 · 1 comment

Comments

@Benny-Git
Copy link

I tried getting my USB IR head to work with this container, but ran into issues where it could not open the meter:

[Oct 07 20:59:39][]     ===> Start meters
[Oct 07 20:59:39][sml]  open(/dev/ttyUSB0): Permission denied
[Oct 07 20:59:39][mtr0] Cannot open meter
[Oct 07 20:59:39][]     Startup failed: Meter open failed.

I finally figured out that the user doesn't have the right permissions, as USER nobody is set in the Dockerfile. Is there a specific reason for this? Otherwise please accept my pull request to change this.

@t3r
Copy link
Owner

t3r commented Nov 4, 2021

Running as root is dangerous and should not be the default setting. You can run your docker image as root with
"docker run [...] --user root [..]"
and override the USER setting in the Dockerfile

@t3r t3r closed this as completed Nov 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants