-
Notifications
You must be signed in to change notification settings - Fork 124
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
Usable for docker container? #79
Comments
You have to add the device parameter: |
@jaqua What base image are you using? I am hitting issues with missing /sys/device-tree on alpine |
I am having an issue trying to run this on K8S. In order to control the GPIO pins, I mapped the following host directories:
There is no issue running the following from within the container: $ echo 21 >/sys/class/gpio/export
$ echo out >/sys/class/gpio/gpio21/direction
$ echo 1 >/sys/class/gpio/gpio21/value
$ echo 0 >/sys/class/gpio/gpio21/value The package does not successfully detect the board and is always using a mock. |
I'm running some applications on my RPI via docker container.
Is it possible to use node-rpio inside a docker container? Do I have to make some directories accessable or something like this?
The text was updated successfully, but these errors were encountered: