Hi guys,
I’m unable to mount folders of a windows container on an external SMB share (Windows).
I’ve installed Docker EE (version 19+) on a windows server 2016. Docker image is also a windows image.
I’ve mounted external SMB share as a network drive ‘Z:’ on the above windows server and trying to use the same while executing docker run command.
Tried below options but none of them worked. Mostly docker is unable to find path ‘Z:’ when command is run.
Note: ‘Z:’ --> ‘\\IP-of-Remote-Server-SMB\Shared-Storage’
Option 1: --volume “Z:\repository:C:\repository”
Option 2: --mount type=bind,source=Z:\repository,target=C:\repository
Option 3: --volume “\\IP-of-Remote-Server-SMB\Shared-Storage\repository:C:\repository”
Option 4: --volume “\\FQDN-of-Remote-Server-SMB\Shared-Storage\repository:C:\repository”
Also, I tried to execute docker run command using Privileged mode but this mode doesn’t seem to work on Windows.
Please help!