Rclone cache and docker volume mounts dropping

Hi all,

This is how I’ve setup my rclone cache:

Command

/usr/bin/rclone mount gdcache: /mnt/media \
   --allow-other \
   --dir-cache-time=160h \
   --cache-chunk-size=10M \
   --cache-info-age=168h \
   --cache-workers=5 \
   --cache-tmp-upload-path /data/rclone_upload \
   --cache-tmp-wait-time 60m \
   --attr-timeout=1s \
   --syslog \
   --umask 002 \
   --log-level INFO

Config

[gdcache]
type = cache
remote = gdrive:
plex_url = http://127.0.0.1:32400
plex_username = <username>
plex_password = *** ENCRYPTED ***
chunk_size = 10M
info_age = 24h
chunk_total_size = 100G
plex_token = <token>

I have a couple of docker containers linking to that mount, which works fine for about 10 hours, but after that the docker containers can no longer see the contents of the mount. The mount is still accessible from outside of the container.

My current theory is that the mount gets dropped and put back up, but docker still refers to the old unmounted folder.

Has anyone else experienced this problem? If so, how did you go about addressing this problem?

Any help is much appreciated!

I had the same issue with my setup (except the fact that I’m running rclone in a Docker container) : other containers could not see the rclone mount anymore after running “docker restart rclone”.
It was a bind propagation issue, setting the “slave” bind propagation option on the problematic binds solved my issue : https://docs.docker.com/storage/bind-mounts/#configure-bind-propagation