martin-ger / esp_wifi_repeater

A full functional WiFi Repeater (correctly: a WiFi NAT Router)
MIT License
4.72k stars 896 forks source link

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

Open jackyohh opened 11 months ago

jackyohh commented 11 months ago

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