# Where is settings.js with docker default config?

**URL:** <https://discourse.nodered.org/t/where-is-settings-js-with-docker-default-config/78435>\
**Category:** General\
**Tags:** docker\
**Created:** [15 May 2023 14:06 UTC](https://discourse.nodered.org/t/where-is-settings-js-with-docker-default-config/78435 "2023-05-15T14:06:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![SSHIntoMe](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@SSHIntoMe](https://discourse.nodered.org/u/SSHIntoMe)\
**Post date:** [15 May 2023 14:06 UTC](https://discourse.nodered.org/t/where-is-settings-js-with-docker-default-config/78435/1 "2023-05-15T14:06:35Z")

</div>

Installed nodered via docker using the following command on an Ubuntu 18.04 system, but I can't seem to find the settings.js.

```auto
docker run -it -p 1880:1880 -v node_red_data:/data --name mynodered nodered/node-red

```

Where is this

> data

folder located, so that I can access the settings.js file?

---

<div class="post-metadata">

**Author:** ![Shan](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@Shan](https://discourse.nodered.org/u/Shan)\
**Post date:** [15 May 2023 14:22 UTC](https://discourse.nodered.org/t/where-is-settings-js-with-docker-default-config/78435/2 "2023-05-15T14:22:54Z")

</div>

It is actually mounted in the root filesystem as `/data`. I order to see where it is:

```bash
docker run -it --rm nodered/node-red:latest /bin/bash

```

Once in the container perform `ls -hal` and you will see the `data` directory in the root filesystem of the container

---

<div class="post-metadata">

**Author:** ![SSHIntoMe](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@SSHIntoMe](https://discourse.nodered.org/u/SSHIntoMe)\
**Post date:** [15 May 2023 15:35 UTC](https://discourse.nodered.org/t/where-is-settings-js-with-docker-default-config/78435/3 "2023-05-15T15:35:15Z")

</div>

This starts NodeRed in a verbose mode, showing

> [info] Settings file : /data/settings.js

Can you elaborate on how to get into the container?

> cd /data

gives an error, that the folder doesn't exist.

---

<div class="post-metadata">

**Author:** ![Shan](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@Shan](https://discourse.nodered.org/u/Shan)\
**Post date:** [15 May 2023 15:50 UTC](https://discourse.nodered.org/t/where-is-settings-js-with-docker-default-config/78435/4 "2023-05-15T15:50:55Z")

</div>

sorry my bad

```bash
docker run -d --name=nodered nodered/node-red:latest

```

This will bring node-red container called `nodered` up and you can now perform

```bash
docker exec -it nodered /bin/bash

```

This will drop you in the shell of the container and you can perform your required operations accordingly.

If you just want the contents of the `settings.js` file and don't want to login into container

```bash
docker run --rm nodered/node-red:latest cat /data/settings.js

```

---

<div class="post-metadata">

**Author:** ![SSHIntoMe](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@SSHIntoMe](https://discourse.nodered.org/u/SSHIntoMe)\
**Post date:** [15 May 2023 16:09 UTC](https://discourse.nodered.org/t/where-is-settings-js-with-docker-default-config/78435/5 "2023-05-15T16:09:01Z")

</div>

Somehow that also started NodeRed in verbose mode, and nothing else.

But, I found a way to get access:

> sudo docker exec -t -i mynodered /bin/bash  
> nano /data/settings.js

---

<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:** [29 May 2023 16:09 UTC](https://discourse.nodered.org/t/where-is-settings-js-with-docker-default-config/78435/6 "2023-05-29T16:09:24Z")

</div>

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