docker-alpine-pigpiod
Docker image containing pigpiod running on port 8888. Can be used together with node-red to access GPIOs on raspberry pi. by installing package node-red-node-pi-gpiod
Since this Docker image is based on the Linux distribution alpine, the image i very small (~6MB).
Usage: docker run -it -p 8888:8888 --privileged zinen2/alpine-pigpiod
or using a tagged image, eg. docker run -it -p 8888:8888 --privileged zinen2/alpine-pigpiod:arm32v6
This container must be run on a raspberry pi itself, but the GPIO's is accessible for other devices on port 8888
What is pigpiod
pigpiod is a Linux daemon that launches the pigpio. pigpio and pigpiod is from the same creator. pigpio is a library for the Raspberry which allows control of the General Purpose Input Outputs (GPIO).
Which tag to use?
It should not be necessary to specify the architecture of the board, but just in case thees are here. I had to specify it to work with belenaCloud.
Device Name | Docker image tag | Tested?* | Version tested |
---|---|---|---|
Raspberry Pi (1, Zero, Zero W) | zinen2/alpine-pigpiod:arm32v6 | 76 | |
Raspberry Pi 2 | zinen2/alpine-pigpiod:arm32v7 | NA | |
Raspberry Pi 3 (32bit) | zinen2/alpine-pigpiod:arm32v7 | 76 | |
Raspberry Pi 3 (64bit) | zinen2/alpine-pigpiod:arm64v8 | 76 | |
Raspberry Pi 4 | zinen2/alpine-pigpiod:arm64v8 | NA |
*If you test it on your hardware, please respond back if it worked.
Credits
start.sh
is a copy from another project and the creator’s repo is found here.