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

CIFS mount owner cannot be specified #159

Open
Somebody25 opened this issue Apr 15, 2018 · 0 comments
Open

CIFS mount owner cannot be specified #159

Somebody25 opened this issue Apr 15, 2018 · 0 comments

Comments

@Somebody25
Copy link

Hello!

I tired to execute a docker-compose built, where I wanted to use a samba share as volume.
The user of the mount is still the remote user, even if is specify an other user with --opt uid=0 --opt gid=0
This is not the case when I mount manually.

Docker volume create:
docker volume create -d cifs --name server_url/share --opt username=username --opt password=password --opt uid=0 --opt gid=0 --opt fileMode=0777 --opt dirMode=0777

Result when launching the docker-compose app:
root@server /var/lib/docker-volumes/netshare/cifs/server_url # ls -l
drwxr-xr-x+ 7 175443 175443 0 Apr 15 17:00 share

Manual mount:
mount.cifs -o user=username,pass=password,uid=0,gid=0 //server_url/share /mnt/share

Result of manual mount:
drwxr-xr-x+ 7 root root 0 Apr 15 17:00 share

The effect is, that the docker-compose application cannot write to the share.

Thanks in advance

Regards

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

1 participant