Public | Automated Build

Last pushed: 5 months ago
Short Description
Node-RED visual tool for wiring the Internet of Things
Full Description

node-red

There is now an official Node-RED Docker Image so I'd suggest using that instead.

sudo docker run -it -p 1880:1880 --name mynodered nodered/node-red-docker

Docker Pull Command
Owner
cpswan
Source Repository

Comments (5)
pixelworlds
a year ago

How would one go about adding new nodes - such as the arduino node - to the container?

alagesan
a year ago

Faced a problem with self signed certificates. By adding option -e NODE_TLS_REJECT_UNAUTHORIZED=0 solved the problem

andromeda1966
a year ago

Hi,
have you try to use your Dockerfile in the last few weeks ?
This

 # install node-red
 RUN npm install -g node-red

give an error inside container and no image can be created.

Thanks
Mauro

mvtango
2 years ago

@lesterthomas - The default configuration is to use the hostname in the file that stores the flows. (It is explained here: http://nodered.org/docs/configuration.html - search for "flowFile"). So you get a different file for each container you start, and that may be why cou don't get your saved flows back.

I use this command line to start the node red container:

docker run --name=nodered -d -v /home/core/projekte/nodered/:/root/.node-red -p 1881:1880 cpswan/node-red

The local directory /home/core/projekte/nodered" contains a settings.js file that can be used to set the name of the file the flows are saved in.

You can get a template settings.js file here:

https://github.com/node-red/node-red/blob/master/settings.js

... and modify the line with "flowFile" - set it to a static filename. That way you allways get your flows back.

lesterthomas
2 years ago

Question: When I add new flows to my node-red, these flows disappear if I re-start the container. How do I save the state of the flows?