September-9th-2019, 12:24 PM
Hi,
I have a docker that runs a Python application which uses GPIOs (via the Python RPi.GPIO library).
This docker runs fine on the Raspberry Pi 3B, but not on the netPI. I get:
Further information:
- I do start the docker container with the `--priviliged` option.
- I have not yet attached a DI DO extension the netPI. I assume the module is "just" extending the GPIOs to the outside.
- On the Raspberry Pi, I don't use portainer.
- I've upgraded the firmware of the netPI to the latest version on September 5.
Are there any differences between the netPI and Raspberry Pi concerning the GPIOs or am I doing something wrong?
Thanks,
david.
I have a docker that runs a Python application which uses GPIOs (via the Python RPi.GPIO library).
This docker runs fine on the Raspberry Pi 3B, but not on the netPI. I get:
Code:
RuntimeError: No access to /dev/mem. Try running as root!
Further information:
- I do start the docker container with the `--priviliged` option.
- I have not yet attached a DI DO extension the netPI. I assume the module is "just" extending the GPIOs to the outside.
- On the Raspberry Pi, I don't use portainer.
- I've upgraded the firmware of the netPI to the latest version on September 5.
Are there any differences between the netPI and Raspberry Pi concerning the GPIOs or am I doing something wrong?
Thanks,
david.