I created a test folder(AgentData) in side D drive in host machine (windows server2019) and I mapped that using below command ,
docker run -it `
-v D:\DockerTest:C:\AgentData `
mcr.microsoft.com/windows/servercore:ltsc2019 `
powershell
PS C:\> mklink /D D:\ C:\AgentData
mklink : The term 'mklink' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ mklink /D D:\ C:\AgentData
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (mklink:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException