March 16, 201511 yr I easily got this docker installed, thanks to the templates and repos being available. I started it, and can get to its GUI (i have nothing running on 8080). My issue is that i cannot figure out how to add local folders to be synced. I don't see a volume being passed that I setup for my unRAID shares. I tried /mnt/cache/Data/.... (which is a cache only share) and that doesn't seem to work. Here is what the docker runs with: docker run -d --name="Syncthing" \ --net="bridge" \ -p 8080:8080/tcp \ -p 22000:22000/tcp \ -p 21025:21025/udp \ -v "/mnt/user/appdata/syncthing":"/config":rw gfjardim/syncthing Anyone else have this setup? Have I just been spoiled with dockers what work another way that I'm making this more difficult than its worth? I have tried to put /mnt/cache/Data/... but that generates an error upon restart with a "could not mkdir /mnt/cache, access denied"
March 16, 201511 yr Don't use this but you need to have another volume mapping. All you have is the config mapping. You need to make another for the data you want the docker to access.
March 17, 201511 yr Author Thanks! I went ahead and added a /mnt/media to /mnt/cache/Data and it works as expected. That would update the code to: docker run -d --name="Syncthing" \ --net="bridge" \ -p 8080:8080/tcp \ -p 22000:22000/tcp \ -p 21025:21025/udp \ -v "/mnt/user/appdata/syncthing":"/config":rw -v "/path/to/syncfolders":"/mnt/media":rw gfjardim/syncthing You could use a lot of options instead of /mnt/media, but i knew that existed inside the container already, so i just did that.
March 29, 201511 yr Hi, I'm also having a bit of trouble figuring out what local folders can be synced. I was trying to just select /mnt/user/FolderICreatedViaShares but syncthing just gives me an error "mkdir /mnt/user/FolderICreatedViaShares: permission denied" It wasn't clear to me from this post if the code was something that should be added to a file or run each time from shell? and the parts about -v "/path/to/syncfolders":"/mnt/media":rw gfjardim/syncthing is that saying you specify a base sync folder (mnt?) then individual sub folders under it (/mnt/media)? sorry its a bit over my head. Thanks!
Archived
This topic is now archived and is closed to further replies.