I installed NR on RPi with Docker following the instructions on Running under Docker : Node-RED . However, it looks like the internal broker is not started: Port 1883 is not listed under sockets in state LISTEN. And NR cannot connect to the internal broker:
axel@raspi:~ $ docker run --rm -p 1880:1880 -v node_red_data:/data --name nodered nodered/node-red
> node-red-docker@1.2.9 start /usr/src/node-red
> node $NODE_OPTIONS node_modules/node-red/red.js $FLOWS "--userDir" "/data"
13 Mar 12:13:39 - [info]
Welcome to Node-RED
===================
13 Mar 12:13:39 - [info] Node-RED version: v1.2.9
13 Mar 12:13:39 - [info] Node.js version: v10.23.2
13 Mar 12:13:39 - [info] Linux 5.4.72-v7+ arm LE
13 Mar 12:13:42 - [info] Loading palette nodes
13 Mar 12:13:46 - [info] Settings file : /data/settings.js
13 Mar 12:13:46 - [info] Context store : 'default' [module=memory]
13 Mar 12:13:46 - [info] User directory : /data
13 Mar 12:13:46 - [warn] Projects disabled : editorTheme.projects.enabled=false
13 Mar 12:13:46 - [info] Flows file : /data/flows.json
13 Mar 12:13:46 - [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.
---------------------------------------------------------------------
13 Mar 12:13:46 - [info] Starting flows
13 Mar 12:13:47 - [info] Started flows
13 Mar 12:13:47 - [info] [mqtt-broker:raspi] Connection failed to broker: mqtt://192.168.69.5:1883
13 Mar 12:13:47 - [info] Server now running at http://127.0.0.1:1880/
13 Mar 12:14:02 - [info] [mqtt-broker:raspi] Connection failed to broker: mqtt://192.168.69.5:1883
13 Mar 12:14:17 - [info] [mqtt-broker:raspi] Connection failed to broker: mqtt://192.168.69.5:1883
When I installed NR on my Linux laptop with Docker it is LISTEN on 1883 and every works.
Therefore it looks like there is some problem with the Docker image for RPi.
Axel