# Running Node Red under Docker file path

**URL:** <https://discourse.nodered.org/t/running-node-red-under-docker-file-path/41408>\
**Category:** General\
**Created:** [22 February 2021 08:32 UTC](https://discourse.nodered.org/t/running-node-red-under-docker-file-path/41408 "2021-02-22T08:32:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sefaguntepe](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sefaguntepe/32/94497_2.png) [@sefaguntepe](https://discourse.nodered.org/u/sefaguntepe)\
**Post date:** [22 February 2021 08:32 UTC](https://discourse.nodered.org/t/running-node-red-under-docker-file-path/41408/1 "2021-02-22T08:32:36Z")

</div>

I'm running Node Red under Docker. I want to create a file with "alasql" plugin. But what should I write to the file path?

---

<div class="post-metadata">

**Author:** ![janvda](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/janvda/32/234_2.png) [@janvda](https://discourse.nodered.org/u/janvda)\
**Post date:** [22 February 2021 09:05 UTC](https://discourse.nodered.org/t/running-node-red-under-docker-file-path/41408/2 "2021-02-22T09:05:44Z")

</div>

In fact this should behave the same as if not using docker. Of course the directory structure of your docker container is different from your host machine.

If you want to persist the alasql data outside your docker container (so it is not lost when (re)building a new version of the container) then you must make use of docker volumes and assure that the alasql file path refers to such docker volume.

---

<div class="post-metadata">

**Author:** ![sefaguntepe](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sefaguntepe/32/94497_2.png) [@sefaguntepe](https://discourse.nodered.org/u/sefaguntepe)\
**Post date:** [22 February 2021 09:08 UTC](https://discourse.nodered.org/t/running-node-red-under-docker-file-path/41408/3 "2021-02-22T09:08:13Z")

</div>

Can you give an example for the file path?

---

<div class="post-metadata">

**Author:** ![janvda](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/janvda/32/234_2.png) [@janvda](https://discourse.nodered.org/u/janvda)\
**Post date:** [22 February 2021 09:14 UTC](https://discourse.nodered.org/t/running-node-red-under-docker-file-path/41408/4 "2021-02-22T09:14:07Z")

</div>

I have never used the alasql node.  
Maybe you could try with following file name `/data/my_alasql_file`

---

<div class="post-metadata">

**Author:** ![janvda](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/janvda/32/234_2.png) [@janvda](https://discourse.nodered.org/u/janvda)\
**Post date:** [22 February 2021 09:18 UTC](https://discourse.nodered.org/t/running-node-red-under-docker-file-path/41408/5 "2021-02-22T09:18:45Z")

</div>

After some further reading of the below part it seems that a proper file extension might be mandatory.  
So maybe the following filename might work `/data/my_alasql_file.txt`

> **[node-red-contrib-alasql](https://flows.nodered.org/node/node-red-contrib-alasql)**
>
> Node-RED wrapper for AlaSQL database and XLSX import/export

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/d/9dd5d7c7262ea0a7dc84eccc506d5457d350852b.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [23 April 2021 09:19 UTC](https://discourse.nodered.org/t/running-node-red-under-docker-file-path/41408/6 "2021-04-23T09:19:41Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
