Quantcast
Channel: Active questions tagged windows - Super User
Viewing all articles
Browse latest Browse all 9648

How to access Windows shared network drive from Windows Docker Container

$
0
0

I need to access my network shared drive D: from my Windows container.Using Docker Desktop 2.1.0.5 with Windows containers and Windows 10 Pro 1903.

I tried using:

docker run --rm -it mydocker/image -v D::C:\D --name myimage

and I get this error:

 The system cannot find the file specified

It tried with the IP address too:

docker run --rm -it mydocker/image -v \\ip\data:C:\D --name myimage

but I still get the same error.

I tried with Docker Desktop 2.2.0.0 but the error was the same and I rolled back because of this issue (just to be sure).

Related question docker-windows-container-how-to-mount-a-host-folder-as-data-volume-on-windows.

Edit:
The image name has to be the last argument, it seems. No I have another error:

docker run --rm -it -v \\ip\data:C:\D --name myimage mydocker/imagedocker: Error response from daemon: invalid volume specification: '\\ip\data:C:\D'

Viewing all articles
Browse latest Browse all 9648

Trending Articles