This docker image for the Raspberry Pi runs Node-RED, including GPIO access.
244
This docker image for the Raspberry Pi runs Node-RED, including GPIO access. It's based a the slim image of nodejs for ARM, which runs the latest Node.js version on a light Debian Jessie.
If you haven't done so yet, install Docker with this simple command via the terminal on your Raspberry Pi.
curl -sSL https://get.docker.com | sh
If you are planning to use GPIO, make sure you have the respective interfacing options activated on the RaspberryPI, e.g. SPI, I2C, Remote GPIO etc. You can easily control and change these settings via
sudo raspi-config
Starting this image requires specific privileges if GPIO access is needed in Node-RED. We also make sure that the respective volumes are made available, to allow for easy backup and editing of files.
docker run -d --privileged --restart unless-stopped -p 1880:1880 --name node-red -v node-red:/root/.node-red -v python:/root/python aietes/node-red
Open your Node-RED instance as always under http://<RaspberryPI IP address>:1880.
The mounted volumes can be found in with their respective names
/var/lib/docker/volumes/
If required connect into the docker image shell via
docker exec -it node-red bash
The Dockerfile on Github
Please contribute on Github, if you have feedback and questions, or find bugs.
Content type
Image
Digest
Size
174 MB
Last updated
about 7 years ago
docker pull aietes/node-red