Closed fbclol closed 6 years ago
Add allow_other to the MOUNT_OPTS environment variable
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
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?
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