How to access a windows network share

I have a windows program that needs to access files on the network on a network share. What is the correct way to do this? Assume the share is //Server/share/.

I saw some threads that stated share are not supported.

Assuming this is true can I mount a drive β€œe:/” when I run a docker image? I cannot seem to find this anywhere.
I saw a solution to create a volume and create a volume when running:
docker volume create Intex
docker run -v intex:e:/environments imagename
But this generated the error:
docker: Error response from daemon: container cb27cfff356ef927774356032d91bb23777819c80834acad044893d8a4b28fa8 encountered an error during Start: failure in a Windows system call: The compute system exited unexpectedly. (0xc0370106).

Not sure how to approach this.

Thanks in advance,
Eric

I use docker-volume-netshare for my own stack. However, I am questioning that approach as to whether it is needed or not because local can specify a type see https://stackoverflow.com/a/45283176/242042

You should be able to do this command

net use \server\share /u:domain\username

replace \server\share with a real unc shared folder and domain\username with your id which has access to the unc share.

It will then prompt for your credentials. After you feed it correct credentials you can then access files on the share.

1 Like