Hello Raspberry Pi docker-loving hardware hackers!
This image supports full GPIO and serial access, for use with Python (wiringpi2, pyserial) and C (libwiringpi).
To run interactively:
docker run --device /dev/ttyAMA0:/dev/ttyAMA0 --device /dev/mem:/dev/mem --privileged -ti acencini/rpi-python-serial-wiringpi /bin/bash
Privileged access to /dev/mem is required by wiringPi.
Verify that wiringPi is seeing GPIO via the gpio utility:
Thanks to the Hypriot team for making docker fun on Raspberry Pi!