Skip to content
Ben Hardill edited this page May 10, 2022 · 9 revisions

node-red-logo docker-logo

Welcome to the Node-RED Docker wiki

This wiki describes how Node-RED can be run in a Docker environment. It is assumed that some basic familiarity with Docker and the Docker Command Line are known. A good starting point can be found here.

Quick Start

Deploying a Node-RED Docker container is as simple as:

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

Let's dissect that command:

docker run run a container.
-it attach a terminal session so we can see what is going on
-p 1880:1880 connect internal local port 1880 to the exposed external port 1880
--name mynodered a friendly name for the container.
nodered/node-red the image to base the container on - currently Node-RED v1.0

Running the above command should give a terminal window with a running instance of Node-RED.

Welcome to Node-RED
===================
         
10 Aug 12:57:10 - [info] Node-RED version: v1.0
10 Aug 12:57:10 - [info] Node.js  version: v10.16.2
10 Aug 12:57:10 - [info] Linux 4.19.58-v7+ arm LE
10 Aug 12:57:11 - [info] Loading palette nodes
10 Aug 12:57:16 - [info] Settings file  : /data/settings.js
10 Aug 12:57:16 - [info] Context store  : 'default' [module=memory]
10 Aug 12:57:16 - [info] User directory : /data
10 Aug 12:57:16 - [warn] Projects disabled : editorTheme.projects.enabled=false
10 Aug 12:57:16 - [info] Flows file     : /data/flows.json
10 Aug 12:57:16 - [info] Creating new flow file
10 Aug 12:57:17 - [warn] 

---------------------------------------------------------------------
Your flow credentials file is encrypted using a system-generated key.

If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.

You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
---------------------------------------------------------------------
       
10 Aug 12:57:17 - [info] Server now running at http:https://127.0.0.1:1880/
[...]

You can then browse to http:https://<host_ip>:1880 to get the familiar Node-RED editor.