Node-RED + Docker + Raspberry

Node-RED + Docker + Raspberry

Table of Contents

Step by step guide to install Node-RED on Raspberry Pi via Docker

Node-RED + Docker + Raspberry

Update your Raspberry’s OS:

sudo apt update

Install Docker by running the command:

curl -sSL https://get.docker.com | sh

or

sudo apt install docker.io

Add your user to the Docker group, to avoid having to use sudo every time you run a Docker command:

sudo usermod -aG docker $USER

Use the docker run command to start the Node-RED container with access to GPIOs. Access to GPIOs usually requires access to the /dev/gpiomem device.

Run the following command:

sudo docker run -d --name mynodered --restart always --privileged -p 1880:1880 -v node_red_data:/data --device /dev/gpiomem nodered/node-red:latest

Enabling the 1-Wire Interface on the Rpi. To do this, simply access the Raspi-Config page with:

sudo raspi-config

Go to Interfaces and then to 1-Wire, enable it and reboot the device.

Share:
comments powered by Disqus

Related Posts

Temperature Reading with Raspberry + DS18B20

Temperature Reading with Raspberry + DS18B20

Step by step guide to use the DS18B20 sensor with Raspberry Pi