Docker Community Forums

Share and learn in the Docker community.

Problem mounting a NTFS share on Windows Server container running linux

Hey there,

I’m running several linux containers on Windows Server 2016. Mounting local folders to the containers works well, but I’m unable to mount network share (NTFS) to the container. I’ve tried using different formats and also tried mapping the network share \192.xxx.xxx.xxx\ to a local drive Y: without any success.

What am I doing wrong here?

docker run -d -v //192.xxx.xxx.xxx:/var/foo …

docker: Error response from daemon: invalid volume specification: ‘//192.xxx.xxx.xxx/:/var/foo’.

Same when using \ instead of // for remote path. Trying to mount as Y: (locally mapped):

docker: Error response from daemon: invalid volume specification: ‘Y::/var/foo’: invalid mount config for type “bind”: bind source path does not exist: y:.

Thank you! Dominik