Docker Community Forums

Share and learn in the Docker community.

Mount Shared Windows folder from Docker Windows Container - same box

I have installed Docker latest.
I have set it to use WSL2.
I have downloaded a Windows image for sql server from advitec/mssql-server-windows-developer

It comes up.

I need to map a drive on my workstation (Windows 10) inside the container.

The local share is C:\shr
The desired container share is C:\Data

I am logged in as my self set to Administrator.

I am using the following container run command from a Visual Studio Code terminal
docker run -it -e “ACCEPT_EULA=Y” -e “SA_PASSWORD=…” advitec/mssql-server-windows-developer -v c:\shr:c:\data:
The volume will not mount. I get the following message:

docker: Error response from daemon: container 09af2bf3c2a586f64088fc71ac7cf867661449aa6d8398f25b22201e14e714ff encountered an error during hcsshim::System::CreateProcess: failure in a Windows system call: The system cann enot find the file specified. (0x2) fin
[Event Detail: Provider: 00000000-0000-0000-0000-000000000000]
[Event Detail: Provider: 00000000-0000-0000-0000-000000000000]
*[Event Detail: onecore\vm\compute\management\orchestration\vmhostedcontainer\processmanagement.cpp(173)\vmcomputeagent.exe!00007FF69B6B9D2B: (caller: 00007FF69B66E13A) Exception(2) tid(380) 80070002 The system cannot finuted the file specified. he *

  • CallContext:[\Bridge_ProcessMessage\VmHostedContainer_ExecuteProcess]*
  • Provider: 00000000-0000-0000-0000-000000000000].*

ALL the comments I can assume the container is a Linux image. Hence, the mount process is not the same, apparently.

I need to mount this host folder in a Windows image. Any guidance.

What is your Windows version? Can you run containers without volumes?