I am new to docker, so please bear with my naive questions. We are trying to host a dot net application in a Windows container. We were successful in hosting the application in the container. However, the application is accessing the network share like \\machinename\abc. We tried to create a volume of type "NFS" but looks like that does not work well in Windows container(How to directly mount NFS share/volume in container using docker compose v3).
volumes:
example:
driver: local
driver_opts:
type: "nfs"
o: "addr=172.27.11.1,nolock,soft,rw"
device: ":/dockerdata"
Can anyone please guide what are the options to access the network share in docker windows container? Thanks a lot for the help.
This is a compose file (with two containers where the "server" needs data from a network share) for docker on windows accessing a volume on a remote windows network share. The "server" container directory /data is mapped to uc3data, the remote share "\\192.168.49.53\myshare$\UC3_DATA"
Notes: