# How to access config file when using in docker (synology)?

**URL:** <https://discourse.nodered.org/t/how-to-access-config-file-when-using-in-docker-synology/18355>\
**Category:** General\
**Created:** [24 November 2019 14:30 UTC](https://discourse.nodered.org/t/how-to-access-config-file-when-using-in-docker-synology/18355 "2019-11-24T14:30:59Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![waquete](https://avatars.discourse-cdn.com/v4/letter/w/a698b9/32.png) [@waquete](https://discourse.nodered.org/u/waquete)\
**Post date:** [24 November 2019 14:30 UTC](https://discourse.nodered.org/t/how-to-access-config-file-when-using-in-docker-synology/18355/1 "2019-11-24T14:30:59Z")

</div>

Hi there!

I have setup nodered in docker on my synology...so far it works fine.  
Today I noticed a warning message about the credential secret, suggesting to set my own in the config file.....but I have no clue how to modify such file inside docker inside synology ... 😔

Anybody has an idea ?

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [25 November 2019 02:56 UTC](https://discourse.nodered.org/t/how-to-access-config-file-when-using-in-docker-synology/18355/2 "2019-11-25T02:56:12Z")

</div>

presumably you will have exported some volumes to ensure your data remains live if/when you rebuild the Docker container.

This would usually be part of the startup script for the container - you will need to dig into the synology logs to see what command is starting NR and what the commandline options are

Craig

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [25 November 2019 09:39 UTC](https://discourse.nodered.org/t/how-to-access-config-file-when-using-in-docker-synology/18355/3 "2019-11-25T09:39:10Z")

</div>

Like @craigcurtin states, you need to have either a volume or a local mountpoint.

From the commandline create a folder eg: `mkdir -p /volume1/docker/node-red`  
From the syno docker UI, stop the container, edit, add a volume:  
file/folder: `/volume1/docker/node-red`, mount point: `/data`

Restart the container. Now the flows.json and settings.js and all additional installed nodes will end up on your local filesystem (/volume1/docker/node-red).

---

<div class="post-metadata">

**Author:** ![waquete](https://avatars.discourse-cdn.com/v4/letter/w/a698b9/32.png) [@waquete](https://discourse.nodered.org/u/waquete)\
**Post date:** [6 December 2019 22:53 UTC](https://discourse.nodered.org/t/how-to-access-config-file-when-using-in-docker-synology/18355/4 "2019-12-06T22:53:43Z")

</div>

Hi!  
Did you mean something like this ?

 ![docker](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/1/17c4fd2231a4118fd7cb50a60986b6f8fa437428.png)

it crashes the docker....

Is there any specific owner to use for the /volume1/docker/node-red folder ?

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [6 December 2019 23:05 UTC](https://discourse.nodered.org/t/how-to-access-config-file-when-using-in-docker-synology/18355/5 "2019-12-06T23:05:44Z")

</div>

Please read my comment again and look at your screenshot.

---

<div class="post-metadata">

**Author:** ![Ventilo](https://avatars.discourse-cdn.com/v4/letter/v/e19b73/32.png) [@Ventilo](https://discourse.nodered.org/u/Ventilo)\
**Post date:** [30 March 2020 19:58 UTC](https://discourse.nodered.org/t/how-to-access-config-file-when-using-in-docker-synology/18355/6 "2020-03-30T19:58:39Z")

</div>

Hi, do you found a solution?

---

<div class="post-metadata">

**Author:** ![noworrries](https://avatars.discourse-cdn.com/v4/letter/n/50afbb/32.png) [@noworrries](https://discourse.nodered.org/u/noworrries)\
**Post date:** [18 November 2020 13:03 UTC](https://discourse.nodered.org/t/how-to-access-config-file-when-using-in-docker-synology/18355/7 "2020-11-18T13:03:27Z")

</div>

Happend to have the same problem,  
/volume1/docker/node-red as path shows up in the UI as docker/node-red, there is no way to see the volume1 in the path, but it refers to the correct folder. As mentioned above, it is a rights problem.  
Docker itself runs as root, but the docker container runs as UID 1000, no name connected. Either I could give full rights 777 to the folder or, what I have done and does work, I went into ssh and changed the owner to the UID of the container:  
`chown 1000 /node-red`  
and it works

---

<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:** [2 December 2020 13:03 UTC](https://discourse.nodered.org/t/how-to-access-config-file-when-using-in-docker-synology/18355/8 "2020-12-02T13:03:37Z")

</div>

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