Data Directories?

Hello

I was setting up the Syncthing container and was wondering why the container ignores my Data Directory. When i create a new Sync Folder or share one it always creates it in the config folder. Is there a more specific explanation how to use the Data Option?

We can’t say unless you give us more information on how you’ve deployed it. Please provide info on your host / how you’ve deployed the container (compose or docker run) with the relevant information.

I deployed the container via dockerrun but via portainer in the webinterface. Host system is a Server with debian 9. Or what do you need specific?

Need to know the details you used to deploy the container.

Does the container Inspect helps?

   {
        "AppArmorProfile": "docker-default",
        "Args": [],
        "Config": {
            "AttachStderr": false,
            "AttachStdin": false,
            "AttachStdout": false,
            "Cmd": [],
            "Domainname": "",
            "Entrypoint": [
                "/init"
            ],
            "Env": [
                "PUID=1001",
                "PGID=100",
                "TZ=Europe/Berlin",
                "UMASK_SET=022",
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "PS1=$(whoami)@$(hostname):$(pwd)\\$ ",
                "HOME=/config",
                "TERM=xterm"
            ],
            "ExposedPorts": {
                "21027/udp": {},
                "22000/tcp": {},
                "8384/tcp": {}
            },
            "Hostname": "Omega-System",
            "Image": "linuxserver/syncthing:latest",
            "Labels": {
                "build_version": "Linuxserver.io version:- v1.3.3-ls24 Build-date:- 2020-01-07T00:32:20-05:00",
                "maintainer": "thelamer"
            },
            "OnBuild": null,
            "OpenStdin": false,
            "StdinOnce": false,
            "Tty": false,
            "User": "",
            "Volumes": {
                "/config": {},
                "/data1": {}
            },
            "WorkingDir": ""
        },
        "Created": "2020-01-15T13:56:52.090347684Z",
        "Driver": "overlay2",
        "ExecIDs": null,
        "GraphDriver": {
            "Data": {
                "LowerDir": "/srv/dev-disk-by-label-Docker/Docker/overlay2/a4c6751adf74b0061ef525bc5324854cd609968fe828a3b901a66157f3a63b38-init/diff:/srv/dev-disk-by-label-Docker/Docker/overlay2/38e48acc083e7c50869019ae4b39be333a72ea8f4d699334a0f66f642db31eaa/diff:/srv/dev-disk-by-label-Docker/Docker/overlay2/29d1292f836e3b3b2b1a336b647125a97f60a6f0ea17293687abf18ed5b0d561/diff:/srv/dev-disk-by-label-Docker/Docker/overlay2/f96306dd104a6c118f8e96246fe2c2e6205c8fd7895f3cd323bb793dce8e8df5/diff:/srv/dev-disk-by-label-Docker/Docker/overlay2/d44a666432c355520228ce256739e82af5731bfabc119d5a68627bd8cb7f8bdd/diff:/srv/dev-disk-by-label-Docker/Docker/overlay2/e788b4dc51e065a8fb057b0867ade7a40c6bb64d77ac74da0cecf9d0bf9d2a6a/diff:/srv/dev-disk-by-label-Docker/Docker/overlay2/2ffdd398b94908e768a8fa6a53878f92b2a7f1a2e453b4c5ca6608b208ffce4a/diff",
                "MergedDir": "/srv/dev-disk-by-label-Docker/Docker/overlay2/a4c6751adf74b0061ef525bc5324854cd609968fe828a3b901a66157f3a63b38/merged",
                "UpperDir": "/srv/dev-disk-by-label-Docker/Docker/overlay2/a4c6751adf74b0061ef525bc5324854cd609968fe828a3b901a66157f3a63b38/diff",
                "WorkDir": "/srv/dev-disk-by-label-Docker/Docker/overlay2/a4c6751adf74b0061ef525bc5324854cd609968fe828a3b901a66157f3a63b38/work"
            },
            "Name": "overlay2"
        },
        "HostConfig": {
            "AutoRemove": false,
            "Binds": [
                "/sharedfolders/Daten:/data1",
                "/sharedfolders/Appdata/Syncthing:/config"
            ],
            "BlkioDeviceReadBps": null,
            "BlkioDeviceReadIOps": null,
            "BlkioDeviceWriteBps": null,
            "BlkioDeviceWriteIOps": null,
            "BlkioWeight": 0,
            "BlkioWeightDevice": null,
            "CapAdd": [
                "AUDIT_WRITE",
                "CHOWN",
                "DAC_OVERRIDE",
                "FOWNER",
                "FSETID",
                "KILL",
                "MKNOD",
                "NET_BIND_SERVICE",
                "NET_RAW",
                "SETFCAP",
                "SETGID",
                "SETPCAP",
                "SETUID",
                "SYS_CHROOT"
            ],
            "CapDrop": [
                "AUDIT_CONTROL",
                "BLOCK_SUSPEND",
                "DAC_READ_SEARCH",
                "IPC_LOCK",
                "IPC_OWNER",
                "LEASE",
                "LINUX_IMMUTABLE",
                "MAC_ADMIN",
                "MAC_OVERRIDE",
                "NET_ADMIN",
                "NET_BROADCAST",
                "SYSLOG",
                "SYS_ADMIN",
                "SYS_BOOT",
                "SYS_MODULE",
                "SYS_NICE",
                "SYS_PACCT",
                "SYS_PTRACE",
                "SYS_RAWIO",
                "SYS_RESOURCE",
                "SYS_TIME",
                "SYS_TTY_CONFIG",
                "WAKE_ALARM"
            ],
            "Capabilities": null,
            "Cgroup": "",
            "CgroupParent": "",
            "ConsoleSize": [
                0,
                0
            ],
            "ContainerIDFile": "",
            "CpuCount": 0,
            "CpuPercent": 0,
            "CpuPeriod": 0,
            "CpuQuota": 0,
            "CpuRealtimePeriod": 0,
            "CpuRealtimeRuntime": 0,
            "CpuShares": 0,
            "CpusetCpus": "",
            "CpusetMems": "",
            "DeviceCgroupRules": null,
            "DeviceRequests": null,
            "Devices": [],
            "Dns": null,
            "DnsOptions": null,
            "DnsSearch": null,
            "ExtraHosts": [],
            "GroupAdd": null,
            "IOMaximumBandwidth": 0,
            "IOMaximumIOps": 0,
            "IpcMode": "private",
            "Isolation": "",
            "KernelMemory": 0,
            "KernelMemoryTCP": 0,
            "Links": null,
            "LogConfig": {
                "Config": {},
                "Type": "json-file"
            },
            "MaskedPaths": [
                "/proc/asound",
                "/proc/acpi",
                "/proc/kcore",
                "/proc/keys",
                "/proc/latency_stats",
                "/proc/timer_list",
                "/proc/timer_stats",
                "/proc/sched_debug",
                "/proc/scsi",
                "/sys/firmware"
            ],
            "Memory": 0,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": null,
            "NanoCpus": 0,
            "NetworkMode": "host",
            "OomKillDisable": false,
            "OomScoreAdj": 0,
            "PidMode": "",
            "PidsLimit": null,
            "PortBindings": {},
            "Privileged": false,
            "PublishAllPorts": false,
            "ReadonlyPaths": [
                "/proc/bus",
                "/proc/fs",
                "/proc/irq",
                "/proc/sys",
                "/proc/sysrq-trigger"
            ],
            "ReadonlyRootfs": false,
            "RestartPolicy": {
                "MaximumRetryCount": 0,
                "Name": "always"
            },
            "Runtime": "runc",
            "SecurityOpt": null,
            "ShmSize": 67108864,
            "UTSMode": "",
            "Ulimits": null,
            "UsernsMode": "",
            "VolumeDriver": "",
            "VolumesFrom": null
        },
        "HostnamePath": "/srv/dev-disk-by-label-Docker/Docker/containers/bdeba14b82f9fdcd8324dc47448573edfdfeda6dfde6828e7ab90cedacdaea34/hostname",
        "HostsPath": "/srv/dev-disk-by-label-Docker/Docker/containers/bdeba14b82f9fdcd8324dc47448573edfdfeda6dfde6828e7ab90cedacdaea34/hosts",
        "Id": "bdeba14b82f9fdcd8324dc47448573edfdfeda6dfde6828e7ab90cedacdaea34",
        "Image": "sha256:e09d54b5a1576947c4bd35f9cd240dc96419db5b6561e82cd8535f2c95a2d036",
        "LogPath": "/srv/dev-disk-by-label-Docker/Docker/containers/bdeba14b82f9fdcd8324dc47448573edfdfeda6dfde6828e7ab90cedacdaea34/bdeba14b82f9fdcd8324dc47448573edfdfeda6dfde6828e7ab90cedacdaea34-json.log",
        "MountLabel": "",
        "Mounts": [
            {
                "Destination": "/data1",
                "Mode": "",
                "Propagation": "rprivate",
                "RW": true,
                "Source": "/sharedfolders/Daten",
                "Type": "bind"
            },
            {
                "Destination": "/config",
                "Mode": "",
                "Propagation": "rprivate",
                "RW": true,
                "Source": "/sharedfolders/Appdata/Syncthing",
                "Type": "bind"
            }
        ],
        "Name": "/Syncthing",
        "NetworkSettings": {
            "Bridge": "",
            "EndpointID": "",
            "Gateway": "",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "HairpinMode": false,
            "IPAddress": "",
            "IPPrefixLen": 0,
            "IPv6Gateway": "",
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "MacAddress": "",
            "Networks": {
                "host": {
                    "Aliases": null,
                    "DriverOpts": null,
                    "EndpointID": "",
                    "Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "IPAMConfig": {},
                    "IPAddress": "",
                    "IPPrefixLen": 0,
                    "IPv6Gateway": "",
                    "Links": null,
                    "MacAddress": "",
                    "NetworkID": "a64272aa3066e8f254394d87ae67763cc2f6b822ab11139eca0f93a761beb8b5"
                }
            },
            "Ports": {},
            "SandboxID": "c48ae7749a9a0921ba161ca86c4064b9a25c3b11e2aa40a7a544e8f21233f381",
            "SandboxKey": "/var/run/docker/netns/default",
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null
        },
        "Path": "/init",
        "Platform": "linux",
        "Portainer": {
            "ResourceControl": {
                "Id": 10,
                "ResourceId": "bdeba14b82f9fdcd8324dc47448573edfdfeda6dfde6828e7ab90cedacdaea34",
                "SubResourceIds": [],
                "Type": 1,
                "UserAccesses": [],
                "TeamAccesses": [],
                "Public": false,
                "AdministratorsOnly": true,
                "System": false
            }
        },
        "ProcessLabel": "",
        "ResolvConfPath": "/srv/dev-disk-by-label-Docker/Docker/containers/bdeba14b82f9fdcd8324dc47448573edfdfeda6dfde6828e7ab90cedacdaea34/resolv.conf",
        "RestartCount": 0,
        "State": {
            "Dead": false,
            "Error": "",
            "ExitCode": 0,
            "FinishedAt": "2020-01-15T14:05:26.750325282Z",
            "OOMKilled": false,
            "Paused": false,
            "Pid": 0,
            "Restarting": false,
            "Running": false,
            "StartedAt": "2020-01-15T13:56:52.452982102Z",
            "Status": "exited"
        }
    }

Ok, that all looks ok. With your issue, I suspect you need select the /data1 mount when creating a new folder sync.

Ok… that worked.

when you create a new folder the folder path must something like /data1/testfolder

I dont know how to use the data folders.

Thx for the help

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