Page 1 of 1
Docker and sycthing
Posted: 08 Dec 2020, 03:54
by gcok
Does anybody have a full guide on how to use syncthing thing and docker please, I have installed it and it seems to say the container is running, how do i access it. I am not a docker user, this is my first NAS.
Many thanks
Re: Docker and sycthing
Posted: 08 Dec 2020, 05:09
by gcok
Ok I have solved this,
however I am not sure how to give syncthing permission to access a shared folder I have created, it seems the default is /var/syncthing is their anyway i can change that. Also another issue I am having is if I stop the container and restart it, the device ID changes of syncthing meaning I have to set it all up again
Re: Docker and sycthing
Posted: 09 Dec 2020, 08:02
by yerc1
gcok wrote: ↑08 Dec 2020, 05:09
however I am not sure how to give syncthing permission to access a shared folder I have created, it seems the default is /var/syncthing is their anyway i can change that.
Wow, i have actually been struggling to make sense of this myself. As a temporary solution I put the folder to be synced in the physical location which the Syncthing container shows as /var/syncthing, but would like to have that in my shared folder.
gcok wrote: ↑08 Dec 2020, 05:09
Also another issue I am having is if I stop the container and restart it, the device ID changes of syncthing meaning I have to set it all up again
Hmm, I need to check my set up for this issue when I'm back home.
Re: Docker and sycthing
Posted: 10 Dec 2020, 04:18
by gcok
yerc1 wrote: ↑09 Dec 2020, 08:02
gcok wrote: ↑08 Dec 2020, 05:09
however I am not sure how to give syncthing permission to access a shared folder I have created, it seems the default is /var/syncthing is their anyway i can change that.
Wow, i have actually been struggling to make sense of this myself. As a temporary solution I put the folder to be synced in the physical location which the Syncthing container shows as /var/syncthing, but would like to have that in my shared folder.
gcok wrote: ↑08 Dec 2020, 05:09
Also another issue I am having is if I stop the container and restart it, the device ID changes of syncthing meaning I have to set it all up again
Hmm, I need to check my set up for this issue when I'm back home.
a brief update I installed the syncthing version provided by linuxserver, when setting up the container if you enable auto restart it will keep the device Id persistent, they use the \config\sync folder to store the synced files, however I still have no idea how to access that folder via folder manger, I can only access that file via logging into SSH. I will look into this further over the weekend
Re: Docker and sycthing
Posted: 10 Dec 2020, 04:25
by yerc1
Hey @gcok - I have some updates too
The Device ID does change for me too after a container restart (I have my TNAS automatically power off one night of the week) which needs setting up Syncthing again. Another problem-solving project for the week-end.
In relation to file/data location, it would seem that the default set up of the Syncthing container is to store files in a docker
Volume as opposed to
Bind Mount a host folder. This is why, for my case, its data are in /var/syncthing/ (as per app) which is actually in /var/lib/docker/volumes/volume_name/_data/ (as per host, TOS). I'm now looking at running Syncthing to "bind mount" my TOS shared folder. The Docker app GUI has a tab for volume, but nothing for mount, so I'm guessing it has to be done from the command line.
Can a Docker expert in this forum please advise?