Best option to access network share in docker windows container with Docker Compose

不问归期 提交于 2021-02-11 15:02:28

问题


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.

来源:https://stackoverflow.com/questions/64430814/best-option-to-access-network-share-in-docker-windows-container-with-docker-comp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!