Hi,
I am using the Official Docker container and have multiple mounted_folders setup, for the sake of debugging i will limit that to one.
The container is launched via docker-compose, the volume is mounted at launch /start and i can access it with the UI and write data in there (read sync a folder), but all files have root:root ownership.
Any idea how to get the ownership of the file within this folder to be the same as the parent mounted folder ?
---
According to Docker discussions, the volume will have ownership of the user in the container (which seems to be root here), could this be rlsync instead ?
There is a way according to the doc to have this setup with the USER directive in the dockerfile :
https://docs.docker.com/engine/reference/builder/#volume
Docker-compose.yml
version: "2"
services:
sync:
image: resilio/sync:latest
ports:
- "8888:8888"
- "55555"
volumes:
- "./syncdata:/mnt/sync"
- "./config:/mnt/sync/config"
- "/mnt/myfolder2:/mnt/mounted_folders/myfolder2"
restart: always