Ben,
Is the flows file the same or specific to each container ? If the same then you can copy it over at build time, then point to it in the run command... Ie use a fixed name. Do you need to pass in any credentials at all ? Can the user of the container reenter them from the web page ? If not then yes they'll will need to be copied over.
Is the flows file the same or specific to each container ?
If the same then you can copy it over at build time, then point to it in the run command... Ie use a fixed name.
Do you need to pass in any credentials at all ? Can the user of the container reenter them from the web page ? If not then yes they'll will need to be copied over.
docker run <some options> -v /home/pi/.node-red:/root/.node-red <image_name>
This way the flows files, new nodes, library files are shared between
these directories. I am not sure if this is the best way but it works
for me. I also placed a settings.js in my local dir that changes the flows file name to flows.json (because the flows file by default is
named flows_<machine_name>.json and docker ID changes with each restart).