Find my Node Red Docker Container?

Hi,

I’m running Node Red as a Docker Container, on my QNAP NAS, however i can’t work out exactly where all the configuration files are (and having had multiple attempts there are loads of folders listed on the NAS)

Is there anything I can do within Node Red to see where the install/configuration file are located ?

determine the container name:
docker ps

then:
docker inspect <node-red-container-name>

you will find:

"HostConfig": {
            "Binds": [
                "/path:/path"
            ],}

Thanks @bakman2

I did as you suggested and it returned a lot of information - the host and binds you’d mentioned only shows this, but there was some interesting information above - which I have added below??

    "Image": "sha256:884b3ad2aabbe05cd5d8a17f8af800b540113ae289322174745305d094f63a53",
    "ResolvConfPath": "/share/CACHEDEV1_DATA/Backups/VM/container-station-data/lib/docker/containers/ba1185fa0146d8ae48f9853d0e4b98e4da3d062a8d23a273e44ae62861e78fac/resolv.conf",
    "HostnamePath": "/share/CACHEDEV1_DATA/Backups/VM/container-station-data/lib/docker/containers/ba1185fa0146d8ae48f9853d0e4b98e4da3d062a8d23a273e44ae62861e78fac/hostname",
    "HostsPath": "/share/CACHEDEV1_DATA/Backups/VM/container-station-data/lib/docker/containers/ba1185fa0146d8ae48f9853d0e4b98e4da3d062a8d23a273e44ae62861e78fac/hosts",
    "LogPath": "/share/CACHEDEV1_DATA/Backups/VM/container-station-data/lib/docker/containers/ba1185fa0146d8ae48f9853d0e4b98e4da3d062a8d23a273e44ae62861e78fac/ba1185fa0146d8ae48f9853d0e4b98e4da3d062a8d23a273e44ae62861e78fac-json.log",
    "Name": "/node-red-docker-1",
    "RestartCount": 0,
    "Driver": "overlay2",
    "Platform": "linux",
    "MountLabel": "",
    "ProcessLabel": "",
    "AppArmorProfile": "",
    "ExecIDs": null,
    "HostConfig": {
        "Binds": [],
        "ContainerIDFile": "",
        "LogConfig": {
            "Type": "json-file",
            "Config": {}
        },
        "NetworkMode": "host",
        "PortBindings": {
            "1880/tcp": [
                {
                    "HostIp": "0.0.0.0",
                    "HostPort": ""
                }
            ]
        },

Also check Mounts and/or Volumes

Something called "GraphDriver" looks interesting , and has a mounts section..

Here you go..

"GraphDriver": {
            "Data": {
                "LowerDir": "/share/CACHEDEV1_DATA/Backups/VM/container-station-data/lib/docker/overlay2/e0251b7879f3de75e8498d9cf6afd1dab7af5ea911228a2e1c1c6bf36faef068-init/diff:/share/CACHEDEV1_DATA/Backups/VM/container-station-data/lib/docker/overlay2/66a532902d263d5f43c53e1f15cc2ed60cc5cc1c0669a80b225523ddb72026f9/diff:/share/CACHEDEV1_DATA/Backups/VM/container-station-data/lib/docker/overlay2/70ed1cf7a5151903a6ed59daa0ac2492eba77ca6f655431043cd493dae57e4fd/diff:/share/CACHEDEV1_DATA/Backups/VM/container-station-data/lib/docker/overlay2/dd777721effd878e397c1034ed2f8219e44f7d3ae6ec4f424e601b11a4d087f4/diff:/share/CACHEDEV1_DATA/Backups/VM/container-station-data/lib/docker/overlay2/ad73cbb8a6bbe4b2969b11336e8d18b582298d86a9ddafcb7d587b90916e4087/diff:/share/CACHEDEV1_DATA/Backups/VM/container-station-data/lib/docker/overlay2/bea60ff3b903d2730f59543b619a90a2e8f305790bb54e0c14f2745bdcf7fb56/diff:/share/CACHEDEV1_DATA/Backups/VM/container-station-data/lib/docker/overlay2/5d30f00e8fbe49bb2097b096412e70a9c2fb2801ae16437b17a4f15e771e3ee8/diff:/share/CACHEDEV1_DATA/Backups/VM/container-station-data/lib/docker/overlay2/95c20c494bbcaf2e6d3ebddc55e713f60391c14a2018276db81608bed4f2ffbb/diff:/share/CACHEDEV1_DATA/Backups/VM/container-station-data/lib/docker/overlay2/12bc0c89c996a7ed5f3aba964bcbc0c3f01b3e66bf38503a1b3a2d19c941aa8d/diff:/share/CACHEDEV1_DATA/Backups/VM/container-station-data/lib/docker/overlay2/c41554fa132b50671f4fc73f904c7c0cd05e9f899b9a00579fc4f17ae1c339e1/diff:/share/CACHEDEV1_DATA/Backups/VM/container-station-data/lib/docker/overlay2/5e8be11ffde689a964fbcd412acfc1b5e7b2cbb788f242e289e4de4e50f873d4/diff:/share/CACHEDEV1_DATA/Backups/VM/container-station-data/lib/docker/overlay2/98f4b66bebe69a2275c37fc4820924252b81c73f10904a8a052142610a410a27/diff:/share/CACHEDEV1_DATA/Backups/VM/container-station-data/lib/docker/overlay2/f28ae7f522d96a70f40ebdf55d734079a3077b7b86b85ac7ad93174dd0861d17/diff:/share/CACHEDEV1_DATA/Backups/VM/container-station-data/lib/docker/overlay2/e5268746e05c39510dbbcb73bfe6c69d07cd478f773796f8518fc8a57c7fb331/diff",
                "MergedDir": "/share/CACHEDEV1_DATA/Backups/VM/container-station-data/lib/docker/overlay2/e0251b7879f3de75e8498d9cf6afd1dab7af5ea911228a2e1c1c6bf36faef068/merged",
                "UpperDir": "/share/CACHEDEV1_DATA/Backups/VM/container-station-data/lib/docker/overlay2/e0251b7879f3de75e8498d9cf6afd1dab7af5ea911228a2e1c1c6bf36faef068/diff",
                "WorkDir": "/share/CACHEDEV1_DATA/Backups/VM/container-station-data/lib/docker/overlay2/e0251b7879f3de75e8498d9cf6afd1dab7af5ea911228a2e1c1c6bf36faef068/work"
            },
            "Name": "overlay2"
        },
        "Mounts": [],
        "Config": {
            "Hostname": "NAS12345",
            "Domainname": "",
            "User": "node-red",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "1880/tcp": {}
            },
            "Tty": true,
            "OpenStdin": true,
            "StdinOnce": false,
            "Env": [
                "FLOWS=flows.json",
                "NODE_PATH=/usr/src/node-red/node_modules:/data/node_modules",
                "NODE_VERSION=8.15.1",
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "YARN_VERSION=1.12.3",
                "TZ=Europe/London"
            ],
            "Cmd": [
                "npm",
                "start",
                "--",
                "--userDir",
                "/data"
            ],
            "Image": "nodered/node-red-docker:latest",
            "Volumes": null,
            "WorkingDir": "/usr/src/node-red",
            "Entrypoint": null,
            "OnBuild": null,
            "Labels": {
                "com.qnap.qcs.gpu_device": "",
                "com.qnap.qcs.network.mode": "host"
            }
        },

It looks like you are using the flows.json file inside the docker container, if you restart the container, you still have flows ?

Oh yes, stop/start all the flows are still there..