I’m curious if anyone has been able to access a NFS share from within a windows container.
Using microsoft/iis as by base image I’m unable to install the NFS-Client Windows Feature and can’t seem to mount from the container host.
Thanks in advance for any help
I was able to run powershell script in container which maps network drive.
$net = New-Object -ComObject WScript.Network
$net.MapNetworkDrive(“H:”, “\server-ip\some-path”, $false, “username”, “password”)
Note that ping was required to find a route to network share. For some unknown reason the first attempt always fails and it cannot find a route to network share. Therefore I run this in loop until it succeeds. It is worth mentioning that I ran containers in overlay network.