(Yes another Newb) Docker Bind :shared issue

What is the problem you are having with rclone?

The mounted data is not visible on the host.

I have been able to search and i cant find the specific issue i have been having.

I understand that you need the :shared to be there for the mounted drive, to appear on the host.

I am able to successfully use rclone within the container, if i dont do the :shared after the data path.

When i do do, `:shared' (as per the command below), i get this error.

dave@ooby:/mnt$ sudo docker run --name Rclone --volume ~/rclone:/config/rclone --volume /mnt/drive:/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 this_one: /data/drive --allow-other
[sudo] password for dave:
docker: Error response from daemon: path /mnt/drive is mounted on /mnt but it is not a shared mount.
ERRO[0000] error waiting for container: context canceled
dave@ooby:/mnt$

Run the command 'rclone version' and share the full output of the command.

(docker)
rclone v1.61.1

  • os/version: alpine 3.17.0 (64 bit)
  • os/kernel: 5.15.0-58-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.19.4
  • go/linking: static
  • go/tags: none

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

Google Drive

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

sudo docker run --name Rclone --volume ~/rclone:/config/rclone --volume /mnt:/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 this_one: /data/drive --allow-other

The rclone config contents with secrets removed.

[gdrive]
type = drive
client_id = 892488030.com
client_secret = VE..........psg
scope = drive
token = {"access_token":"ya29.a...........NB4","expiry":"2023-01841Z"}
team_drive =

[this_one]
type = crypt
remote = gdrive:
password = tVCO...........B9E4c
password2 = -EjZc........

A log from the command with the -vv flag

docker: Error response from daemon: path /mnt/drive is mounted on /mnt but it is not a shared mount.
ERRO[0000] error waiting for container: context canceled

I am having the same problem (Windows Docker) any success ?

No unfortunately, not sure of the best way to get support too if not here? :frowning:

Most folks don't use docker with rclone so it's a more niche case.

You can also try asking on the docker forums/reddit

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