maximusKarlson
maximusKarlson

Reputation: 113

Running Node-Red in a Docker Container on my Server - where store data files (csv)?

I have a problem with my server - docker - node-red setup. I started a container on my server with the following command:

docker run -d \ --name=node-red \ --restart=always \
-p 1880:1880 \ -u 1000:1000 \ 
-v /home/maximus/node-red:/data \ nodered/node-red-docker:latest

I can login to Node-Red using port 1886 and start creating flows. Within one flow I want to use a .csv-file which is also stored on my server. (currently under /home/maximus/node-red/)

When I enter this path to the node properties (file in) in Node-red I get an error after injecting the flow.

Does anyone know where I have to store the cdv file to be able to use it in Node-red? I can imagine that I have to store it within the docker container but don't know where exactly.

Upvotes: 0

Views: 1066

Answers (1)

hardillb
hardillb

Reputation: 59696

The simplest option is to use the volume mount you already have.

Put the csv file into /home/maximus/node-red on the host and it will be available in the docker container in /data

Upvotes: 1

Related Questions