# File node- not writing to file

**URL:** <https://discourse.nodered.org/t/file-node-not-writing-to-file/26404>\
**Category:** General\
**Created:** [10 May 2020 06:01 UTC](https://discourse.nodered.org/t/file-node-not-writing-to-file/26404 "2020-05-10T06:01:47Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![SteveMann](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stevemann/32/3810_2.png) [@SteveMann](https://discourse.nodered.org/u/SteveMann)\
**Post date:** [10 May 2020 22:00 UTC](https://discourse.nodered.org/t/file-node-not-writing-to-file/26404/22 "2020-05-10T22:00:24Z")

</div>

SOLVED

First, I apologize for wasting so much time because I did not mention up front that NR was installed in a Docker container. I really did not know that the docker filesystem was hidden from the Ubuntu filesystem.  
However, someone on the HA forum did provide the solution:

> The Node-RED add-on is a Docker container and can’t “see” the host file system. You could use `/share` , which is mapped to `/usr/share/hassio/share` in the host.

Hope this helps someone in the future.

---

<div class="post-metadata">

**Author:** ![Tortax](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tortax/32/42704_2.png) [@Tortax](https://discourse.nodered.org/u/Tortax)\
**Post date:** [1 June 2021 09:52 UTC](https://discourse.nodered.org/t/file-node-not-writing-to-file/26404/23 "2021-06-01T09:52:38Z")

</div>

Hey SteveMann

Does this still work in docker?  
My node-red flow is not able to use the /share directory by default.

For those still looking, you can initiate a docker with a bind directory for persistence linked to "/home/docker/dock1" like so:

```auto
docker run -it -p 1880:1880 -v /home/docker/dock1:/data --name mynodered1 nodered/node-red

```

---

<div class="post-metadata">

**Author:** ![SteveMann](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stevemann/32/3810_2.png) [@SteveMann](https://discourse.nodered.org/u/SteveMann)\
**Post date:** [1 June 2021 20:31 UTC](https://discourse.nodered.org/t/file-node-not-writing-to-file/26404/24 "2021-06-01T20:31:57Z")

</div>

I am the wrong one to ask. What I know about Docker is best described as "I know what it is". I am running HassOS and share is a folder in the root folder.

Here's how I use it in Node-Red:

![logfiles](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/e/dedf172d07d4daf93a28681019b8883811bdc1a3.jpeg)

[Previous page](https://discourse.nodered.org/t/file-node-not-writing-to-file/26404.md?page=1)
