Not able to share drives on Windows 10 - Docker for Windows Version 2.0.0.0-beta1-win75 (19925)

Hi,
I can’t share my C: drive. I click on it, it asks for my credentials which I set correctly and then just “uncheck” the box by its own… so I cannot share the drive.
Is this a known bug? I’m running last edge version: Version 2.0.0.0-beta1-win75 (19925)

PS C:…\Users> docker info
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 55
Server Version: 18.09.0-ce-beta1
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 468a545b9edcd5932818eb9de8e72413e616e86e
runc version: 69663f0bd4b60df09991c08812a60108003fa340
init version: fec3683
Security Options:
seccomp
Profile: default
Kernel Version: 4.9.125-linuxkit
Operating System: Docker for Windows
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 3.837GiB
Name: linuxkit-00155df0011b
ID: MA35:AZWJ:LQCQ:5BNL:JSA5:KP6A:AYQO:E6HK:HHN4:UBHV:C7PA:TH6U
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
File Descriptors: 22
Goroutines: 47
System Time: 2018-10-05T11:29:50.3245791Z
EventsListeners: 1
Registry: https://index.docker.io/v1/
Labels:
Experimental: true
Insecure Registries:
docker.iscinternal.com
127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine

This is the message when I try to mount a directory directly with the run… the Share it window opens, then I introduce my credentials… an I get:

PS C:…\system32> docker run --rm -v c:/Users:/data alpine ls /data
C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: An error occurred while sharing drive.
See ‘C:\Program Files\Docker\Docker\Resources\bin\docker.exe run --help’.

Hi,
Are you on a corporate network?
I’ve had exactly the same problem and it turns out that the company security policy forbids drive sharing across networks and there was nothing I could do about it :frowning_face:
Maybe see if your network guys could allow Docker to share the drive

Not in my case. Everything was in my laptop even if I was not in VPN.

In the end I had to uninstall and reinstall. Now it works again… But not being able why and how it happened doesn’t make me feel very comfortable. Let’s see.

Descarga Outlook para iOS

Same problem. Click on share and it just unchecks itself. No error dialogs.

Hello,

I am also getting this issue. When I review the log, here is the output:

[23:13:13.497][NamedPipeServer][Info   ] Version()
[23:13:13.498][NamedPipeServer][Info   ] Version done in 00:00:00.0009966.
[23:13:13.499][NamedPipeServer][Info   ] Mount(All, D, docker:**********, Docker.Core.Settings)
[23:13:13.592][SambaShare][Info   ] Mount D
[23:13:13.625][Cmd][Info] This shared resource does not exist.
[23:13:13.625][Cmd][Info] More help is available by typing NET HELPMSG 2310.
[23:13:13.627][SambaShare][Info] "D" is not shared
[23:13:13.627][SambaShare][Info] Creating share "D:\" as "D" with Full Control to "docker"
[23:13:13.699][Cmd][Info] D was shared successfully.
[23:13:13.739][Cmd][Info] Share name        D
[23:13:13.739][Cmd][Info] Path              D:\
[23:13:13.739][Cmd][Info] Remark
[23:13:13.739][Cmd][Info] Maximum users     No limit
[23:13:13.739][Cmd][Info] Users
[23:13:13.739][Cmd][Info] Caching           Caching disabled
[23:13:13.739][Cmd][Info] Permission        TITAN\docker, FULL
[23:13:13.739][Cmd][Info] The command completed successfully.
[23:13:13.741][SambaShare][Info] "D" is shared
[23:13:13.743][SambaShare][Info] Username: docker
[23:13:13.743][SambaShare][Info] Host IP: 10.0.75.1
[23:13:13.743][SambaShare][Info] Cifs options:    noperm,iocharset=utf8,dir_mode=0777,nobrl,mfsymlinks,vers=3.02,domain=TITAN,sec=ntlmsspi
[23:13:14.689][SambaShare][Error] Unable to mount D drive: Cannot find /var/run/desktop/docker.pid in the docker container

This last line has me confused and I can’t find a reference online anywhere:

  • Unable to mount D drive: Cannot find /var/run/desktop/docker.pid in the docker container

This has me at a complete stand-still and any assistance would be greatly appreciated.

Thanks!