Docker Community Forums

Share and learn in the Docker community.

Folder sharing In windows container

Hello,

I have created a docker image and its running in container,
Our web Site uses windows folder sharing to appear login page, If folder are not shared It does not work.

Eg: \xxx.xx.xx.xx\Web
\xxx.xx.xx.xx\Assets
\xxx.xx.xx.xx\Temp

I am not able to share folder inside docker,

I have written below commands to do folder sharing in docker file.

commands:
CMD net share ‘Web’=‘C:\Web’ /GRANT:Everyone,FULL
or
New-SMBShare –Name ‘Web’ –Path ‘C:\Web’ -FullAccess Everyone

Inside conainter i tried running same commands. It does not allow me to share folder as it says Service “Server” is not running. Its Lanman service in windows container.

Can you please help me in understand how to share folder.

Thanks

Can any please help me on this.