Comments (4)
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.
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.
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.
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)
- Not an issue, Wonder if we can use this on heroku ? HOT 1
- RCLONE_REFRESH_ON_MOUNT HOT 6
- Update to 22.04 HOT 1
- How can I set the RCLONE_LOG_FILE? HOT 1
- Improvements for the readme HOT 2
- Files in rclone mount not showing on host HOT 2
- feat: execute shell command after refresh
- mergerfs HOT 1
- Purpose of --rc?
- Container keeps restarting before i can finish config HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-rclone.