-
Hello, I'm using the onedrive client in a docker environment with docker compose. My setup is working with basic configuration (I'm not an expert). The docker filesystem consist of two mounted folders on my NAS via DFS. I was reading the docs about the risk related the remote mount and I've try to apply the mitigation as documented adding the .nosync file before start the compose and related mounted volumes and adding the check_nomount = "true" and check_nosync = "true" in the config file. When the docker start, report Where I'm wrong? The doc is not fully clear to me, maybe someone can help me. Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
To assist with answering this, can you draw up a diagram on exactly how you are 'dong things' ?
It is unclear on how you have set things up ..... once that is a little clearer - some advice can be given |
Beta Was this translation helpful? Give feedback.
-
hello, sorry, I was not clear enough, here a simple diagram of my setup Hope that this help to clarify. |
Beta Was this translation helpful? Give feedback.
-
In addition, here the docker-compose file I'm using:
|
Beta Was this translation helpful? Give feedback.
-
the config file just includes:
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the additional input - greatly appreciated. What as unclear was this: "The docker filesystem consist of two mounted folders on my NAS via DFS." .. DFS is Distributed File System usually used within Microsoft environments - so I was trying to align and understand what your configuration was. OK .. in your scenario, as the Docker container is the object doing the mounting, using a To use that option, you will need to mount your NFS volume on your Ubuntu server, then update your Docker config to use that local path. When the When the NFS path is mounted to the local mount point, the client will see all your data on your NAS, thus sync the data correctly. |
Beta Was this translation helpful? Give feedback.
-
Many thanks for your answer and support (my mistake confusing DFS wth NFS :-)). Currently QNAP take a snapshot of my onedrive on a daily basis as a dataloss mitigation and the local network is pretty stable. It should be ok but I'll evaluate to change the setup with a local mount. |
Beta Was this translation helpful? Give feedback.
Thanks for the additional input - greatly appreciated.
What as unclear was this: "The docker filesystem consist of two mounted folders on my NAS via DFS." .. DFS is Distributed File System usually used within Microsoft environments - so I was trying to align and understand what your configuration was.
OK .. in your scenario, as the Docker container is the object doing the mounting, using a
.nosync
file withcheck_nomount = "true"
will not be possible.To use that option, you will need to mount your NFS volume on your Ubuntu server, then update your Docker config to use that local path.
When the
.nosync
file is in the mount point , without the NFS path being mounted, the client will see the…