Docker Community Forums

Share and learn in the Docker community.

Mounting a Linux directory to a remote Windows container. Is it currently possible?

(Henryborchers) #1

Is it currently possible to connect and mount a volume from a Linux machine to a remote Windows container?

I have a Jenkins server running on a Linux server but I want it to connect to our Windows Docker server. Is it possible to mount drives on my Linux server with Windows Docker container located on another physical machine?

I’ve been able to successfully launch and connect to a windowsservercore container from the command line.

$ docker -H tcp://...:2376 run -ti microsoft/windowsservercore:1709

Microsoft Windows [Version 10.0.16299.248]
(c) 2017 Microsoft Corporation. All rights reserved.


However, the moment I try to mount a local volume, I’m unable to do so.

docker -H tcp://...:2376 --tlsverify run -ti --mount source=$(pwd)/dummy,target=c:/dummy microsoft/windowsservercore:1709

docker: Error response from daemon: invalid mount config for type "volume": invalid volume name.

Is this possible?

edit: typo