/docker-alpine-pigpiod

Base for docker image containing pigpiod. E.g. used to control GPIO with node-red on raspberry pi.

Primary LanguageShellMIT LicenseMIT

docker-alpine-pigpiod

Docker Pulls

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 ✔️ yes, works on rpi1 76
Raspberry Pi 2 zinen2/alpine-pigpiod:arm32v7 🔲 no NA
Raspberry Pi 3 (32bit) zinen2/alpine-pigpiod:arm32v7 ✔️ yes, works 76
Raspberry Pi 3 (64bit) zinen2/alpine-pigpiod:arm64v8 ❌ yes but don't work 76
Raspberry Pi 4 zinen2/alpine-pigpiod:arm64v8 🔲 no 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.