GithubHelp home page GithubHelp logo

Comments (4)

wiserain avatar wiserain commented on July 17, 2024

I got remembered!

It's designed for the case that user-provided /local folder is not empty and sometime even contains huge amount of files so that might cause inefficiency in every container initialization step.

It is not based on a concrete fact though. How do you thinks?

from docker-rclone.

nosliwkered avatar nosliwkered commented on July 17, 2024

I think I'm tracking what you're concerned about, but I don't believe you should be worried. Docker volumes are persistent storage, so anything written by the container to /local will remain in /local/dir/to/be/merged/with when the container stops or is removed. If /local/dir/to/be/merged/with already exists when the container is started, then docker doesn't have to take any actions against the folder itself and successfully maps it and its existing data to the container's /local.

This issue I'm seeing is specific to the folder permissions associated with /local/dir/to/be/merged/with when it doesn't already exist. For testing purposes, I'm using /home/user/test-local. If /home/user/test-local doesn't already exist, the container creates it, but always using the default PUID:-911 & PGID:-911 and not the user-defined values in docker-compose.yml. This results in /home/user/test-local being created and successfully mapped to the container's /local, but user or any services running as user cannot write to it or to /home/user/test-merged, because it's ultimately still trying to write to /home/user/test-local.

Example:

user@hostname:~$ ls -l |grep test
drwxr-xr-x  2 root     root     4096 May  7 04:12 test-local
drwxr-xr-x  1 user     user        0 May  7 04:14 test-merged
drwxrwxr-x  1 user     user        0 May  7 04:14 test-rclone
user@hostname:~$ touch test-local/testfile
touch: cannot touch 'test-local/testeroo': Permission denied
user@hostname:~$ touch test-merged/testfile
touch: cannot touch 'test-merged/testeroo': Permission denied
user@hostname:~$ touch test-rclone/testfile
user@hostname:~$

from docker-rclone.

wiserain avatar wiserain commented on July 17, 2024

A test image is pushed. Would you mind testing it? You can try with wiserain/rclone:testing or ghcr.io/wiserain/rclone:testing. Thanks.

from docker-rclone.

nosliwkered avatar nosliwkered commented on July 17, 2024

Just tested it with both an existing local folder and non-existant one and it works well in either case! Great work!

from docker-rclone.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.