Raspberry Pi GPIO in Docker container (Homebridge)


Raspberry Pi GPIO in Docker container (Homebridge)



I am trying to access the GPIO pins on my Pi3 B from a docker container. The container is started using docker-compose.



I already tried using privileged mode, addind /dev/gpiomem as a device and adding /sys/class/gpio as a volume.



I cannot get it to work. Has anyonne accomplished this?



The Error is:


EACCES: permission denied, open '/sys/class/gpio/export'





Can you show us specifically what you've tried, and the resulting behavior?
– larsks
Jun 29 at 18:15










By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Comments

Popular posts from this blog

paramiko-expect timeout is happening after executing the command

Opening a url is failing in Swift

Export result set on Dbeaver to CSV