Node-Red in Docker Backup - Flows location

#1

Hi,
perhaps I have overseen it. But my Docker is always restarting after my last Node-Red flow extensions. perhaps due to the node-red-contrib-ccu node. I did not store some flows with export but have a docker .tar export of the Node-Red container. Where can I find the flows to use them in a new container again? Docker is only mentioned to understand my environment. I think it is a Node-Red question in its file structure.

Thanks,
Joerg

0 Likes

#2

You can normally find them under the folder ~/.node-red/

0 Likes

#3

Which docker image did you build from ?

More importantly what is your docker run command ?

Craig

0 Likes

#4

I used this image: https://hub.docker.com/r/nodered/node-red-docker/
and I started all on a synology with the standard parameters of the docker environment.

this is in the log: start /usr/src/node-red

node $NODE_OPTIONS node_modules/node-red/red.js -v $FLOWS "--userDir" "/data"

0 Likes

#5

so have you looked in "~/data"?

0 Likes

#6

Thank you, never looked to this start command parameters. I just found there some data but now need to ckeck, if they are really containing the lost flows I am searching for.

0 Likes

#7

The node-red-docker readme has a section on managing user data - https://github.com/node-red/node-red-docker#managing-user-data

0 Likes