Docker Community Forums

Share and learn in the Docker community.

Any guidance on how to access unc path from .net app(not core) inside windows container


(pskumaran) #1

Docker: Version 18.0.3.1-ce
Platform: Windows 10 (Windows container)
Base Image: microsoft/aspnet

Scenario: Have a .net hosted IIS site which writes/saves file to a network share path

Options Tried:
a. Network share volume with container directory: Does not work
b. Mapped Network drive in host, and mapped it to container directory: Does not work
c. Inside the container, ran “net use” with the network path and drive. The mount succeeded. But the .net app cannot write it to the mounted drive.
i. If I use Mounted drive in code, does not work
ii. If I use the network impersonation in code for the share, does not work

Is there any option that I am missing? Any hints/direction will help? Or it is not supported?