Comments (5)
@fede8802 You're my savior!
I can confirm that this is the correct configuration using docker-compose:
version: '3.3'
services:
rclone-mount:
container_name: rclone-mount-${NAME}
restart: unless-stopped
cap_add:
- SYS_ADMIN
- SETPCAP
- MKNOD
security_opt:
- apparmor:unconfined
devices:
- /dev/fuse
environment:
- 'RemotePath=$NAME:/'
- 'MountPoint=/mnt/$NAME'
- 'ConfigDir=/config'
- 'ConfigName=$NAME.conf'
- 'MountCommands=--allow-non-empty --allow-other'
volumes:
- '/my/custom/confdir/$NAME.conf:/config/$NAME.conf'
- type: bind
source: '/my/custom/mountpoint/$NAME'
target: '/mnt/$NAME'
bind:
propagation: shared
image: mumiehub/rclone-mount
restart: unless-stopped
Now when using df i see the mount!
mycustomname:/ 20G 9,7G 11G 49% /mnt/mycustomname
from docker-services.
Added these caps resolved the problem for me:
cap_add:
- SYS_ADMIN
- SETPCAP
- MKNOD
source: https://docs.docker.com/engine/reference/run/
from docker-services.
Hi, I think the issue it's still there, I'm using docker compose with an encrypted rclone mount:
version: '3.3'
services:
rclone-mount:
container_name: rclone-mount-${NAME}
restart: unless-stopped
cap_add:
- SYS_ADMIN
- SETPCAP
- MKNOD
security_opt:
- apparmor:unconfined
devices:
- /dev/fuse
environment:
- 'RemotePath=$NAME:/'
- 'MountPoint=/mnt/$NAME'
- 'ConfigDir=/config'
- 'ConfigName=$NAME.conf'
- 'MountCommands=--allow-non-empty --allow-other'
volumes:
- '/my/custom/confdir/$NAME.conf:/config/$NAME.conf'
- '/my/custom/mountpoint/$NAME:/mnt/$NAME:/'
image: mumiehub/rclone-mount
restart: unless-stopped
And in env file: NAME=mycustomname
If i access the container i can see the files under /mnt/$NAME but when i go to the host mount point i see nothing. Looks like docker can't correctly mount the mnt directory.... Any help?
from docker-services.
I had the same problem and solve it by seting the propagation as shared.
Try to do the following with the volumes declaration:
- type: bind
source: '/my/custom/mountpoint/$NAME'
target: '/mnt/$NAME:/'
bind:
propagation: shared
from docker-services.
Here is an example rclone-mount/docker-compose.yml for ubuntu 18/20. Notice the version 2 of docker-compose! There are some MountCommands (https://rclone.org/commands/rclone_mount/) that manipulate the update interval e.g. --poll-interval
--dir-cache-time
.
from docker-services.
Related Issues (20)
- Container states that rclone process doesn't exist, keeps restarting HOT 2
- official image of rclone
- Sabnzbd not seeing user or openvpn pass.txt HOT 2
- sabnzbd not using USER HOT 1
- Could this be setup to connect multiple google drive
- Update rclone to v1.53.1 - 2020-09-13 HOT 2
- ERROR: for rclone-mount Cannot start service rclone-mount: path /host_mnt/Users/jandrop/mnt/gdrive is mounted on /host_mnt but it is not a shared mount HOT 6
- Multiple remote mounts with single container. HOT 3
- Update Rclone Version to 1.53.3 HOT 2
- Host name: mount: bad address 'example.local' HOT 1
- Add support for running a command once the rclone drive is mounted
- Remove temp files from ocr container
- rclone-mount containers always growing HOT 2
- Something with the config location not working correctly HOT 1
- rclone-mount image contains unnecessary files which takes too much space HOT 1
- Would it be possible to updater clone to version 1.64.2 (2023-10-19) HOT 1
- Samba Mount İssue HOT 4
- Rcloud mount issue HOT 2
- Please add a build for arm64, especially for Rclone mount
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-services.