docker-volume-netshare icon indicating copy to clipboard operation
docker-volume-netshare copied to clipboard

Use/Set .netrc file location from the docker-volume-netshare service

Open stationcasinosgithub opened this issue 9 years ago • 2 comments

So if I specifically run the netshare driver from a command line like the below, then I am able to open a second session and docker works as expected. sudo service docker-volume-netshare start --netrc="/home/ubuntu"

However I need this run as a service. If I put the same information into the /etc/default/docker-volume-netshare file it doesn't work (I get this docker: Error response from daemon: VolumeDriver.Mount: exit status 32.) Is there something else I need to do or is there a way to specify the .netrc location from with the service file?

Thanks!

Update - we used a shorter username and a password with no special characters and it worked. I'm not a Linux person so I'm not sure of the rules around Linux, cifs, etc... We are experimenting :-)

stationcasinosgithub avatar Sep 28 '16 20:09 stationcasinosgithub

This could be a bug in the .netrc library we use. I'm almost tempted in forking and fixing since its been idle (we filed an issue with the maintainer a long time ago). See if these were any of the special chars you were using. I have a feeling this is the root cause : https://github.com/ContainX/docker-volume-netshare/issues/18

gondor avatar Oct 04 '16 06:10 gondor

A workaround is to add WorkingDirectory=/path/.netrc to your systemd unit file.

gojihotsauce avatar Jan 13 '17 16:01 gojihotsauce