Hiho folks
I use Node Red in Docker and ported it from Raspberry Pi to WSL Docker x86 for performance reasons.
Everything works fine since I try to install a new node module. I tried ui_etable and some other ping related nodes. At first I thought its just a problem with the nodes in combination with docker but then I checked that they work well on my old Raspi installation. So the nodes itself does work. And they do also work on docker until I rebuilding the container they then crash Node Red with similar error messages like so:
Error: connect ENOENT /host/run/dbus/system_bus_socket
raspi-nodered-1 | at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1247:16)
Since it only appears after I rebuild the containert, I think there may be a problem with missing volume settings. Who is familiär with docker knows that changes inside the container are only temporary and are gone after rebuilding the container. If I missed to link a path to outside the container by setting up the right volumes this could be the reason for my problems.
Here is my docker-compose.yml where the volumes set:
nodered:
build: ./docker/nodered
restart: always
environment:
- TZ=Europe/Berlin
- DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/run/dbus/system_bus_socket
ports:
- 1880:1880
depends_on:
- mosquitto
- mariadb
volumes:
- ./data/nodered:/data
- ./data/nodered/home:/home
and my Dockerfile:
FROM nodered/node-red:3.0.2-18
USER root
RUN apk add ffmpeg
Thanx in advance for your apprentice and help!