You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
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
The text was updated successfully, but these errors were encountered: