mitcdh / docker-google-drive-ocamlfuse

Mount Google Drive with FUSE within a Docker container
75 stars 19 forks source link

mount share no root ? #7

Closed fbclol closed 6 years ago

fbclol commented 6 years ago

how can i make the mount share with a no-root user?

if loging root : drwxrwxrwx 2 root root 4096 mai 28 19:44 drive

if loging user(martin) : ? d????????? ? ? ? ? ? drive

mitcdh commented 6 years ago

Add allow_other to the MOUNT_OPTS environment variable

fbclol commented 6 years ago

docker run -d --name=gdrive_perso -e CLIENT_ID='XX' -e CLIENT_SECRET='XX' -e VERIFICATION_CODE='XXX' -e MOUNT_OPTS='allow_other' -e PUID='1000' -e PGID='0' --security-opt apparmor:unconfined --cap-add mknod --cap-add sys_admin --device=/dev/fuse -v /mnt/drive:/mnt/gdrive:shared gdrive:latest

result : creating gdfuser group for gid 0 creating gdfuser group for uid 1000 useradd: -o flag is only allowed with the -u flag Usage: useradd [options] LOGIN

mitcdh commented 6 years ago

You're bailing out at useradd, there should be no -o flag provided at that point.

Are you sure you're using this image? For reference I get the following running exactly your command with mitcdh/google-drive-ocamlfuse:latest as the image to use.

creating gdfuser group for gid 0
creating gdfuser group for uid 1000
taking ownership of /config for gdfuser
initilising google-drive-ocamlfuse...

Could you please try again with the DockerHub image?

mitcdh commented 6 years ago

8 should have fixed this