I have one container utilizing rclone (which just mounts my remote drive to a volume). I want to use that volume in another container (for now, it's a test ubuntu container). But when i launch the second container, the directory the volume is mapped to is empty: Here's my run commands:
docker run -dti --name=t1 --volume rclone-cvault:/mnt/c-vault weaveworks/ubuntu
After exec-ing into container rclonemount I see that /mnt/c-vault (the dir mapped to the named volume) has the correct files and dirs from my my remote drive. Excellent.
But if I exec into container t1 , /mnt/c-vault (also mapped to the named volume) shows as empty. Any reason why this is occurring?
I was able to solve it (kind of) by using the :shared tag, but I was hoping to do it without having to bind it to a local directory (just use a named volume instead). But this works well enough. And I created a mergerfs container (kennyparsons/docker-mergerfs) to handle my local buffer merged with my rclone remote. Works really well.
@Animosity022 this whole project stemmed from your recommendation on your github scripts/mounts. I'm trying to containerize the services to be as flexible as possible when deploying. have a look and let me know what you think.