I am calling rclone using screen and for the most part the mount is very stable. If however I happen to clone and reopen the mount I am having issues with it being passed through to my docker.
I had similar issues previously with other mount points that have been resolved by using Slave:RW when mapping the mount point to docker. It is a docker variable that helps when the mount may be mounted after the docker is started. It works with acd_cli and unionfs fused mount points, but doesn’t seem to work with rclone.
If I access the rclone mount point from my host I get in fine, but if I access from inside the docker I get the “Transport endpoint is not connected” error. Restarting the docker fixes it, but I would like to avoid that.
At the moment I now have rclone mounted as the lower layer (RO) of a union-fs fused mount, I haven’t seen the error since, so maybe the extra layer has fixed it. If it re-appears I will try on the work-around.