Domoticz, Docker & GPIO
Posted: Tuesday 09 January 2024 10:35
I am experimenting with moving my domoticxz install to docker. However on my pi it also uses the gpio pins for controlling a few lights
what is the best way to give that docker control to gpio? Adding just the gpio section of the sysfs component to the volumes secion in the compose yml file does not work, I tried
and that didn't work
The following did the trick
but basically that docker now has a lot of access to the pi i don't want to give it, so what is the best way to give gpio access to domoticz in a docker container without giving it too much permissions?
what is the best way to give that docker control to gpio? Adding just the gpio section of the sysfs component to the volumes secion in the compose yml file does not work, I tried
Code: Select all
- /sys/class/gpio:/sys/class/gpio
The following did the trick
Code: Select all
- /sys:/sys