Rclone + smb on docker

What is the problem you are having with rclone?

I use the official image from docker to connect to my OneDrive storage. I have access from the host and everything is perfect.
I use another conteneur: dperson/samba, I share one folder of the host and everything is ok.

My problems arrive when I share the folder mount by rclone: I can read, modify file, move into folder but when I create folder, I have default but the folder is create and I cannot delete or move files.

I really don't understand where is the problem.

What is your rclone version (output from rclone version)

rclone v1.54.0

  • os/arch: linux/amd64
  • go version: go1.15.7

Which OS you are using and how many bits (eg Windows 7, 64 bit)

rclone/rclone image from docker on debian 10

Which cloud storage system are you using? (eg Google Drive)

One drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

  docker run --rm --name=mnt-storage1 --volume \
  /home/debian/app/calibre-web/config/rclone:/config/rclone \
  --volume /home/debian/volume/storage1:/data:shared \
  --user $(id -u):$(id -g) \
  --volume /etc/passwd:/etc/passwd:ro \
  --volume /etc/group:/etc/group:ro  \
  --device /dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined  \
  rclone/rclone mount onedrive-storage1:/data /data \
  --allow-non-empty --allow-other \
  --vfs-cache-mode full --cache-dir /config/rclone \

The rclone config contents with secrets removed.

A log from the command with the -vv flag

I don't know why but my system scan full folder and difficult to read something

Paste  log here

I think you might need a different option than the :shared here - see

Possibly rshared?

thanks for the help,
I try rshared and not better

This is probably some kind of permissions problem...

Do the directories you create have a different permission? What does ls -l say?

File is create like

debian@vps-efa72f1b:~/app/calibre-web$ ls -l ~/volume/storage1/
total 0
drwxr-xr-x 1 debian debian 0 Feb 28 05:43 books
-rw-r--r-- 1 debian debian 0 Mar 2 08:20 'New Text Document (2).txt'
-rw-r--r-- 1 debian debian 0 Feb 28 04:43 'New Text Document.txt'

the docker command is start with debian user

And when I try to delete

It's look like ACL right on windows ( modify but cannot delete) but me except wrx ...
If I use another share, not on docker mount I have no problem.

Does rclone work OK if you run it not in a docker container?

Rclone ok with and without docker, just problem when I use share with dperson/samba.

But I just break my vps, I reinstall and come back!

I'm back!

I have already try this without docker and everything work fine.

Hmm, so maybe this is a docker problem. I'm not an expert on docker problems and they can be quite difficult to debug.

Are you happy running rclone not in docker?

I prefer to use docker, very useful.
I found another way to do what I need.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.