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

docker-container Permission denied: '/dev/ttyUSB0' #519

Open
jackyohh opened this issue Jul 28, 2023 · 0 comments
Open

docker-container Permission denied: '/dev/ttyUSB0' #519

jackyohh opened this issue Jul 28, 2023 · 0 comments

Comments

@jackyohh
Copy link

when i try to flash esp8266 inside docker container, i get "Permission denied: '/dev/ttyUSB0'". i am on Manjaro ( Arch Linux ).
I think it has something to do with group id mismatch between Arch linux (host) and docker container (ubuntu?). On Arch usb devices are in group uucp with id 986 and inside docker-container it is dialout with id 20.

A dirty workaround is to enter docker container with root access --user=root

sudo docker run -it --rm --user=root --device=/dev/ttyUSB0 -v $(pwd)/esp_wifi_repeater:/home/esp/esp_wifi_repeater martinfger/iot_devel:1.0

A proper fix would be great :)

Greetings

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

1 participant