# Docker on Synology

**URL:** <https://discourse.nodered.org/t/docker-on-synology/28370>\
**Category:** General\
**Created:** [15 June 2020 19:54 UTC](https://discourse.nodered.org/t/docker-on-synology/28370 "2020-06-15T19:54:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Goofy2k](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/goofy2k/32/24007_2.png) [@Goofy2k](https://discourse.nodered.org/u/Goofy2k)\
**Post date:** [15 June 2020 19:54 UTC](https://discourse.nodered.org/t/docker-on-synology/28370/1 "2020-06-15T19:54:45Z")

</div>

Hi, I am trying to persist the user data when running NR under Docker on my Synology NAS. I want to use a host directory (Bind Mount) I followed the instructions on Github without succes. I went to the WIKI and followed instructions about Setting up Persistence but still without succes.

I get an error which is similar to the one reported by @E_T on this forum (May 22), but I can't find a clue for a solution. I enclosed a screenshot from my SSH terminal...

Hope that anyone can give me hints.

EDIT: of course there are some suggestions given by npm in the screen-dump. But this all happens inside the docker process. I have no clue on how to implement those suggestions.  
Thanks  
Fred

 ![Picture1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/8/983f7258ce7b65b3cf736c6c7cdb358a2ea3d245.png)

---

<div class="post-metadata">

**Author:** ![E\_T](https://avatars.discourse-cdn.com/v4/letter/e/87869e/32.png) [@E\_T](https://discourse.nodered.org/u/E_T)\
**Post date:** [15 June 2020 20:38 UTC](https://discourse.nodered.org/t/docker-on-synology/28370/2 "2020-06-15T20:38:23Z")

</div>

The problem is the user ID in the Docker Container (UID 1000)  
On the NAS there is no User-ID 1000.

---

<div class="post-metadata">

**Author:** ![Goofy2k](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/goofy2k/32/24007_2.png) [@Goofy2k](https://discourse.nodered.org/u/Goofy2k)\
**Post date:** [15 June 2020 20:48 UTC](https://discourse.nodered.org/t/docker-on-synology/28370/3 "2020-06-15T20:48:50Z")

</div>

I gave user 1000 permissions following instructions in the wiki: sudo chmod etc..... When I check the ownership with ls -nal I get a response that the folder is owned by 1000:1000. These are the suggested actions in the WIki. I thought that this had to be it!?

I interpret the information given that docker when running on the NAS can access resources of the NAS as being user 1000. But I am not well into this matter...

---

<div class="post-metadata">

**Author:** ![Goofy2k](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/goofy2k/32/24007_2.png) [@Goofy2k](https://discourse.nodered.org/u/Goofy2k)\
**Post date:** [16 June 2020 21:43 UTC](https://discourse.nodered.org/t/docker-on-synology/28370/4 "2020-06-16T21:43:07Z")

</div>

I think that I have solved my problem. I've got NR running and storing changes in my flows in a local host folder ! The answer was in the node-red/node-red-docker github repository under Common Issues and Hints. There I discovered how to run the container as the root user by adding -u root:

docker run -it -p 1882:1880 -v /volume1/admin\_data/containers/nodered2:/data --name nodered2 **-u root** nodered/node-red:latest

Now I can go on to fine tune the container.....

Thanks for your support!

---

<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:** [30 June 2020 21:43 UTC](https://discourse.nodered.org/t/docker-on-synology/28370/5 "2020-06-30T21:43:07Z")

</div>

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