I am trying to create docker volumes using the docker-volume-netshare driver from here: https://github.com/ContainX/docker-volume-netshare
The sequence should be like this:
docker volume create -d cifs <some_options>
docker run -v <the_volume> <other_docker_options>
and I can get it to work part of the way but for the life of me I can't get it to pass all the options I need.
Instead of trying to recount my countless different failure modes, I would prefer to state my goal. Underneath, docker-volume-netshare will execute a mount -t cifs ...
command. This can be seen in the log when verbose
is set to true
.
This is the mount command that I am trying to get. I can get username and password in there, but only when using a .netrc file, and I have found no way to get the uid and gid into the command.
mount -t cifs -o username=myusername,password=mypasswd,uid=500,gid=499,rw //myserver.example.net/mysharename /the_mount_point/
So what I am looking for is the authoritative syntax for passing these options through docker-volume-netshare.