Installed nodered via docker using the following command on an Ubuntu 18.04 system, but I can't seem to find the settings.js.
docker run -it -p 1880:1880 -v node_red_data:/data --name mynodered nodered/node-red
Where is this
folder located, so that I can access the settings.js file?
It is actually mounted in the root filesystem as
/data. I order to see where it is:
docker run -it --rm nodered/node-red:latest /bin/bash
Once in the container perform
ls -hal and you will see the
data directory in the root filesystem of the container
This starts NodeRed in a verbose mode, showing
[info] Settings file : /data/settings.js
Can you elaborate on how to get into the container?
gives an error, that the folder doesn't exist.
sorry my bad
docker run -d --name=nodered nodered/node-red:latest
This will bring node-red container called
nodered up and you can now perform
docker exec -it nodered /bin/bash
This will drop you in the shell of the container and you can perform your required operations accordingly.
If you just want the contents of the
settings.js file and don't want to login into container
docker run --rm nodered/node-red:latest cat /data/settings.js
Somehow that also started NodeRed in verbose mode, and nothing else.
But, I found a way to get access:
sudo docker exec -t -i mynodered /bin/bash
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.