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
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