Apologies if this is a duplicate (pretty sure it is as there are several .stfolder permission issue topics) but I’d like to ask here anyway since I haven’t been able to figure it out quite yet.
So the idea is to sync the /var/lib/docker/volumes
folder from the server to the client.
Server Side (send only setup, using linuxserver/syncthing:latest img):
- syncthing running in a docker container
- with a write permission bind mount at
/var/lib/docker/volumes
(this is the folder I want to sync on the client side, it’s just my docker volumes for other containers essentially) -
/var/lib/docker/volumes
is mounted inside the container at/docker-volumes
Client Side (recv only setup, using linuxserver/syncthing:latest img):
- rpi running syncthing, in an openmediavault container setup
Server Side syncthing container perms:
PUID: 1000
PGID: 100
I can confirm that when I log into the syncthing container, I am able to create files/dirs in the /var/lib/docker/volumes
mounted folder.
Server side container id
output:
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video)
I have tried creating .stfolder
and .stignore
manually inside the container under /docker-volumes
and can confirm that works as well, but syncthing still appears to spew out the following errors:
2020-10-02 13:22:51: Loading ignores: lstat /docker-volumes/.stignore: permission denied
2020-10-02 13:22:51: Failed to create folder marker: stat /docker-volumes/.stfolder: permission denied
2020-10-02 13:22:51: Error on folder "docker-volume-backup" (acbd-efgh): stat /docker-volumes/.stfolder: permission denied
Appreciate any help, thanks!