I am running docker for windows on Windows 10
I would like attach a volume to a linux based container. This volume in available on our intranet and is a SMB storage.
On my host machine, I have mapped it with letter G:.
$user = “publishingstudio@xxxxxx”
$pwd = ConvertTo-SecureString “xxxxxxxxxx” -AsPlainText -Force
$cred = New-Object System.Management.Automation.PSCredential($user,pwd) New-SmbGlobalMapping -RemotePath \\xxxxx\publishingstudio -Credential $cred -LocalPath G:
I am able to access its content using windows explorer
Now, I have tried to shared this location with windows for docker using docker for windows setting panel/
When I click on ‘Apply & Restart’, I have a strange behaviour. A line is added but is empty.
I then try to use it using a docker run command.
docker run -v g:/:/data my_container
The container is launch but there is no data.
What is wrong?
Thanks for you help.