# NodeRED in Docker

**URL:** <https://discourse.nodered.org/t/nodered-in-docker/49638>\
**Category:** General\
**Created:** [12 August 2021 01:16 UTC](https://discourse.nodered.org/t/nodered-in-docker/49638 "2021-08-12T01:16:23Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![marwinwijaya](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marwinwijaya/32/23923_2.png) [@marwinwijaya](https://discourse.nodered.org/u/marwinwijaya)\
**Post date:** [12 August 2021 01:16 UTC](https://discourse.nodered.org/t/nodered-in-docker/49638/1 "2021-08-12T01:16:23Z")

</div>

Hello All, I have installed NodeRED on docker running on linux CentOS 7, where is NodeRED's settings.js file to edit those settings.js?

---

<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:** [12 August 2021 04:02 UTC](https://discourse.nodered.org/t/nodered-in-docker/49638/2 "2021-08-12T04:02:33Z")

</div>

Did you install this from the standard image or from someone elses compiled docker ?

Craig

---

<div class="post-metadata">

**Author:** ![marwinwijaya](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marwinwijaya/32/23923_2.png) [@marwinwijaya](https://discourse.nodered.org/u/marwinwijaya)\
**Post date:** [12 August 2021 15:28 UTC](https://discourse.nodered.org/t/nodered-in-docker/49638/3 "2021-08-12T15:28:32Z")

</div>

Its Standard from NodeRED Docker tutorial ([Running under Docker : Node-RED](https://nodered.org/docs/getting-started/docker)).

---

<div class="post-metadata">

**Author:** ![Jean-Luc](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jean-luc/32/89996_2.png) [@Jean-Luc](https://discourse.nodered.org/u/Jean-Luc)\
**Post date:** [12 August 2021 19:53 UTC](https://discourse.nodered.org/t/nodered-in-docker/49638/4 "2021-08-12T19:53:39Z")

</div>

Hello @marwinwijaya

You have to enter in interactive mode in the nodered container and you will find the files under /data

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/1/51e5219a2d444961a22d94d0ce285af84f132ba3.png)

Otherwise, from the host, you will have taken care to map a volume as described in the [documentation](https://nodered.org/docs/getting-started/docker#using-named-data-volumes) to keep your changes when you have destroyed and recreated your container. Otherwise you lose all your changes.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/6/26ca8f5a2fec85f054782da9d9dfa76c43c58e65.png)

From the host, the files can be joined via the path given for the mapped volume.  
In my case:  
_/var/lib/docker/volumes/node\_red\_data/\_data_

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/e/4e62f8de214adb121ac351b68874583fdea8bf92.png)

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/e/aee859d41044f81fb67677a5c45ef125d93b4b5c.png)

Hope it's clear.

---

<div class="post-metadata">

**Author:** ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)\
**Post date:** [12 August 2021 21:03 UTC](https://discourse.nodered.org/t/nodered-in-docker/49638/5 "2021-08-12T21:03:21Z")

</div>

You copy the standard version from `/data/settings.js` and edit outside the container, then mount the edited version back into the container as a volume.

If you edit the version in the container it will be lost when you restart the container

---

<div class="post-metadata">

**Author:** ![marwinwijaya](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marwinwijaya/32/23923_2.png) [@marwinwijaya](https://discourse.nodered.org/u/marwinwijaya)\
**Post date:** [13 August 2021 05:42 UTC](https://discourse.nodered.org/t/nodered-in-docker/49638/6 "2021-08-13T05:42:25Z")

</div>

Thanks @Jean-Luc its Solved.

---

<div class="post-metadata">

**Author:** ![marwinwijaya](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marwinwijaya/32/23923_2.png) [@marwinwijaya](https://discourse.nodered.org/u/marwinwijaya)\
**Post date:** [13 August 2021 05:42 UTC](https://discourse.nodered.org/t/nodered-in-docker/49638/7 "2021-08-13T05:42:50Z")

</div>

Thanks too @hardillb this issue solved

---

<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:** [27 August 2021 05:42 UTC](https://discourse.nodered.org/t/nodered-in-docker/49638/8 "2021-08-27T05:42:55Z")

</div>

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