Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 #52

Open
jandrop opened this issue Nov 21, 2020 · 6 comments

Comments

@jandrop
Copy link

jandrop commented Nov 21, 2020

I´m getting this error when I start the docker image, if I remove the :shared from the volume the service starts but is not sharing the content with the external volume.

I don´t know if this is an issue because of me or is something in your docker image.

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

This is my docker compose:

version: "3"
services: 
  rclone-mount:
    image: mumiehub/rclone-mount
    restart: unless-stopped
    ports:
    - '80:80'
    cap_add:
    - SYS_ADMIN
    security_opt: 
    - 'apparmor:unconfined'
    volumes: 
    - '/var/run/docker.sock:/tmp/docker.sock:ro'
    - '/Users/myUser/developer/docker/rclone/.config/rclone:/config'
    - '/Users/myUser/mnt/gdrive:/mnt/mediaefs:shared'
    logging: 
      options: 
        max-size: 1g
    container_name: rclone-mount
    devices:
    - /dev/fuse
    environment: 
    - 'RemotePath=gdrive:'
    - 'MountCommands=--allow-other --allow-non-empty --buffer-size 256M'
    - 'ConfigName=rclone.conf'
@kitsotik
Copy link

Hello jandrop, i have same error in Ubuntu 20, but same compose in Ubuntu 18 works fine! Saludos.

@Jimmy-SafeCash
Copy link

I have the same error. Any ideas?

Can someone post their working compose?

@georgescumihai
Copy link

I had the same issue, updated to Docker version 20.10.3 worked for a while, now I have the issue again. Can't say exactly what is causing it.

@Mrhyuan
Copy link

Mrhyuan commented Sep 17, 2021

Same error. Any updates? thx

@madhavtummala
Copy link

Installing docker directly instead of through snap will fix this issue

@Mumie-hub
Copy link
Owner

The example rclone-mount/docker-compose.yml should work for ubuntu 18/20. Notice the version 2 of docker-compose! And yes, please dont use snap to install docker. Use https://docs.docker.com. Snap forces the app to use AppArmor (so maybe break some docker mechanics).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants