Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 10: Docker for Windows: unable to share drive #2549

Closed
carljmosca opened this issue Sep 5, 2018 · 43 comments
Closed

Windows 10: Docker for Windows: unable to share drive #2549

carljmosca opened this issue Sep 5, 2018 · 43 comments

Comments

@carljmosca
Copy link

Opening new issue because #690 is being ignored.

#690

@mpp-oliverh
Copy link

I've never once managed to get the Windows drive sharing working on win10. I've tried all the community suggested workarounds over the last year (pre-sharing the drive, creating new users and giving them access, restarting services, rebooting etc.) on multiple different machines.

As far as I can tell, volume sharing simply isn't available on windows 10.

@Smilebags
Copy link

This certainly seems to be the case. I've had the same issue and no resolution in the previous issue. It needs another look at.

@e-gautier
Copy link

yay! waiting since 2 years that Docker for Windows works properly.

@mak003
Copy link

mak003 commented Sep 7, 2018

After update the docker for windows to latest version(Docker version 18.06.1-ce, build e68fc7a). I have the same issue. when I want to share C disk, a window came out. ask for password. I can't use my windows account to deal with it. what kind of account and password is required?


Anyone who have the same issue, Please follow this way: Settings→Reset→Reset to factory default
Maybe it can solves your problem, At least works for me.
Anyway, choose Microsoft Windows is my biggest mistake!

@lucallero
Copy link

+1, same issue here, the workaround of creating a new account didn't work. I'm really trying to work on a Windows box, but it's hard. This is the type of thing that annoys, no error, no log, no solution simply doesn't work, and this with a simple feature of mount a persistent volume.
Look like the same issue too #1801 #690

@chendewei2401
Copy link

same problem, try every workaround i can find, still not work. docker and windows 10 all newest build

@sonowz
Copy link

sonowz commented Sep 21, 2018

@mak003 I did a factory reset, and it worked!

Hoping it might help to fix issue, here's my situation:

  1. Updated to 18.06.1-ce-win73 (19507)
  2. Switched to Linux container mode (didn't use Linux container nor shared drives before)
  3. Shared drives didn't work
  4. After doing factory reset and applying this solution, shared drive works.

@willnil
Copy link

willnil commented Oct 23, 2018

did every suggested workarounds (includ. the factory reset, create a new user, uninstall and reinstall ...) but it still didn't work for me

@AgainPsychoX
Copy link

Still not working :C

@nngo
Copy link

nngo commented Feb 21, 2019

I encountered a similar issues this morning running Docker Desktop Community on my Windows 10 Pro.
All of a sudden, my C: Drive was no longer shared. I went into Settings > Shared Drives and the Shared checkbox for my C Drive was unchecked, I checked it and clicked Apply, it prompted me for my password but the setting did NOT persist. I repeated the above steps a few more times and the shared setting would NOT take into effect. I then restarted Docker Desktop and repeated a few more times in frustration and the setting would not take into effect and I was not able to mount a volume for my Docker container. I rebooted. The shared setting was unchecked. I tried again and it failed and I was still unable to mount a volume. I restarted Docker Desktop again, this time, I gave it an extra few minutes after it said that it was done restarting. Then I went into settings and checked the box to share my C: drive, entered my password yet again... and it finally took the setting and I am able to mount the volume from my C: drive. Somehow, I got lucky.

I am currently running Docker Desktop CE

Version 2.0.0.3 (31259)
Channel: stable
Build: 8858db3

Engine: 18.09.2
Compose: 1.23.2
Machine: 0.16.1

@topikettunen
Copy link

topikettunen commented Mar 7, 2019

+1 Just out of the blue encountered the same issue as @nngo with the same versions. But I haven't been able to share my C: drive.

Edit: Reseting to factory defaults worked for me.

@HBouch
Copy link

HBouch commented Apr 22, 2019

Making sure this issue is getting the attention it needs :

  • Windows 10 Enterprise, I have admin privileges with my account.
  • Docker version 18.09.3, build 774a1f4

It has been ages since I'm trying to fix it, but no luck ...

@LoicHa
Copy link

LoicHa commented Apr 24, 2019

Try this, worked for me

image

@djs55
Copy link

djs55 commented May 3, 2019

To understand what's going on we need to have a look at the logs after the drive sharing failure has happened.

If you can reproduce the problem, it would be really helpful if you:

  1. could reproduce it
  2. then upload a diagnostic report (from the whale menu -> Diagnose and Feedback ... -> (wait for a while) -> Upload)
  3. then quote the diagnostic id in a comment.

Thanks for your help!

@hallen93
Copy link

hallen93 commented May 9, 2019

I'm having the same issue. Attached is the log from when I try to share the drive.

[11:49:52.302][SambaShare     ][Info   ] Removing share "C"
[11:49:52.336][SambaShare     ][Info   ] Mount C
[11:49:52.460][Cmd            ][Info   ] Den delade resursen finns inte.
[11:49:52.460][Cmd            ][Info   ] Du kan f† mer hj„lp genom att skriva NET HELPMSG 2310.
[11:49:52.463][SambaShare     ][Info   ] "C" is not shared
[11:49:52.463][SambaShare     ][Info   ] Creating share "C:" as "C" with Full Control to "Administratör"
[11:49:52.532][Cmd            ][Info   ] C delades.
[11:49:52.573][Cmd            ][Info   ] Resursnamn              C
[11:49:52.573][Cmd            ][Info   ] S”kv„g                  C:\
[11:49:52.573][Cmd            ][Info   ] Kommentar               
[11:49:52.573][Cmd            ][Info   ] Max antal anv„ndare     Ingen begr„nsning
[11:49:52.573][Cmd            ][Info   ] Anv„ndare               
[11:49:52.573][Cmd            ][Info   ] Cachelagring            Cachelagring har inaktiverats
[11:49:52.574][Cmd            ][Info   ] Beh”righet              JHAL-ZBOOK\Administrat”r, FULL
[11:49:52.574][Cmd            ][Info   ] Kommandot har utf”rts.
[11:49:52.577][SambaShare     ][Info   ] "C" is shared
[11:49:52.578][SambaShare     ][Info   ] Username: Administratör
[11:49:52.578][SambaShare     ][Info   ] Host IP: 10.0.75.1
[11:49:52.578][SambaShare     ][Info   ] Cifs options: noperm,iocharset=utf8,dir_mode=0777,nobrl,mfsymlinks,vers=3.02,domain=JHAL-ZBOOK,sec=ntlmsspi
[11:49:52.634][SambaShare     ][Error  ] Unable to mount C drive: unexpected error: System.AggregateException: Ett eller flera fel har uppstått. ---> Newtonsoft.Json.JsonReaderException: Error parsing undefined value. Path '', line 1, position 2.
   vid Newtonsoft.Json.JsonTextReader.ParseUndefined()
   vid Newtonsoft.Json.JsonTextReader.ParseValue()
   vid Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
   vid Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   vid Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   vid Newtonsoft.Json.JsonSerializer.Deserialize[T](JsonReader reader)
   vid Docker.HttpOverStream.HttpClientExtensions.<ParseResponseBody>d__4`1.MoveNext()
--- Slut på stackspårningen från föregående plats där ett undantag utlöstes ---
   vid System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   vid System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   vid Docker.HttpOverStream.HttpClientExtensions.<Post>d__3`1.MoveNext()
   --- Slut på stackspårning för interna undantag ---
   vid System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   vid System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   vid Docker.Backend.LifecycleClient.Mount(MountRequest req)
   vid Docker.Backend.SambaShare.MountInMoby(String drive, Credential cred, UserNameAndDomain info, String options, String ip)
---> (Internt undantag #0) Newtonsoft.Json.JsonReaderException: Error parsing undefined value. Path '', line 1, position 2.
   vid Newtonsoft.Json.JsonTextReader.ParseUndefined()
   vid Newtonsoft.Json.JsonTextReader.ParseValue()
   vid Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
   vid Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   vid Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   vid Newtonsoft.Json.JsonSerializer.Deserialize[T](JsonReader reader)
   vid Docker.HttpOverStream.HttpClientExtensions.<ParseResponseBody>d__4`1.MoveNext()
--- Slut på stackspårningen från föregående plats där ett undantag utlöstes ---
   vid System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   vid System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   vid Docker.HttpOverStream.HttpClientExtensions.<Post>d__3`1.MoveNext()<---

[11:49:52.634][SambaShare     ][Info   ] Removing share "C"
[11:49:52.666][NamedPipeClient][Info   ] Received response for filesharing/mount
[11:49:52.666][NamedPipeServer][Info   ] filesharing/mount done in 00:00:00.6528634.
[11:49:52.671][TrackingSettings][Info   ] Crash report and usage statistics are enabled
[11:49:52.674][NamedPipeClient][Info   ] Sending app/version()...
[11:49:52.674][NamedPipeClient][Info   ] Received response for app/version
[11:49:52.674][NamedPipeClient][Info   ] Sending disk/get-size(C:\ProgramData\DockerDesktop\vm-data\DockerDesktop.vhdx)...
[11:49:52.674][NamedPipeServer][Info   ] app/version()
[11:49:52.674][NamedPipeServer][Info   ] app/version done in 00:00:00.
[11:49:52.675][NamedPipeServer][Info   ] disk/get-size(C:\ProgramData\DockerDesktop\vm-data\DockerDesktop.vhdx)
[11:49:52.678][PowerShell     ][Info   ] Run script...
[11:49:52.717][NamedPipeClient][Info   ] Received response for disk/get-size
[11:49:52.718][NamedPipeClient][Info   ] Sending app/version()...
[11:49:52.718][NamedPipeClient][Info   ] Received response for app/version
[11:49:52.718][NamedPipeClient][Info   ] Sending disk/get-size(C:\ProgramData\DockerDesktop\vm-data\DockerDesktop.vhdx)...
[11:49:52.717][NamedPipeServer][Info   ] disk/get-size done in 00:00:00.0420602.
[11:49:52.718][NamedPipeServer][Info   ] app/version()
[11:49:52.718][NamedPipeServer][Info   ] app/version done in 00:00:00.
[11:49:52.719][NamedPipeServer][Info   ] disk/get-size(C:\ProgramData\DockerDesktop\vm-data\DockerDesktop.vhdx)
[11:49:52.719][PowerShell     ][Info   ] Run script...
[11:49:52.757][NamedPipeClient][Info   ] Received response for disk/get-size
[11:49:52.757][NamedPipeServer][Info   ] disk/get-size done in 00:00:00.0380601.

@pamoller
Copy link

Rentered my changed windows password after "reset to factory defualuts" solved my problem.

@lucallero
Copy link

I think the problem was related to the way windows deal with virtual networks, just a guess, I'm not sure. The point is that after reset/reinstall windows :( things worked.

@HBouch
Copy link

HBouch commented May 26, 2019

I think the problem was related to the way windows deal with virtual networks, just a guess, I'm not sure. The point is that after reset/reinstall windows :( things worked.

Are you on Windows 10 Enterprise ?

@lucallero
Copy link

I think the problem was related to the way windows deal with virtual networks, just a guess, I'm not sure. The point is that after reset/reinstall windows :( things worked.

Are you on Windows 10 Enterprise ?

image

@HBouch
Copy link

HBouch commented May 26, 2019

I think the problem was related to the way windows deal with virtual networks, just a guess, I'm not sure. The point is that after reset/reinstall windows :( things worked.

Are you on Windows 10 Enterprise ?

image

Yeah, I think my firm blocks some stuff using the group policy, even if firewall rules don't.
Docker on Win 10 Pro would work just fine.

@DawnBreather
Copy link

DawnBreather commented May 28, 2019

Rentered my changed windows password after "reset to factory defualuts" solved my problem.

Yup, had to do the same to make things work.
re-entering the credentials on checking / unchecking the drive didn't help

@huberchrigu
Copy link

huberchrigu commented Jun 12, 2019

I had the same log message as @hallen93. It looks like special characters in the computer/domain or user name (like "ü" in my case) are not encoded correctly. After renaming my computer to English characters only, it worked even without prompting me for the password.

@vladymyr-ca
Copy link

"Reset to factory defaults" resolved this issue for me

@tomaziniale
Copy link

tomaziniale commented Jul 5, 2019

I had this issue for the first time here, diagnostic ID:
DF561E4B-A943-4541-8000-E3AFE0B844FA/20190705125012

from the logs

[12:33:16.344][SambaShare     ][Error  ] Unable to mount D drive: 10.0.75.1 (10.0.75.1:445) open
rm: cannot remove '/d': Is a directory
rm: cannot remove '/D': No such file or directory
umount: /host_mnt/d: not mounted.
mount.cifs kernel mount options: ip=10.0.75.1,unc=\\10.0.75.1\D,noperm,iocharset=utf8,dir_mode=0777,nobrl,mfsymlinks,vers=3.02,sec=ntlmsspi,user=myuseraccount,domain=DOMAIN,pass=***
ln: failed to create symbolic link '/d/d': File exists

[12:33:16.345][SambaShare     ][Info   ] Removing share D
[12:33:16.393][SambaShare     ][Info   ] Creating share "D:\" as "D" with Full Control to "DOMAIN\myuseraccount"
[12:33:16.467][Cmd            ][Info   ] D was shared successfully.

Reset to factory defaults does fix but also wipes out all the images that you might have.

@NullXeronier
Copy link

NullXeronier commented Jul 8, 2019

No answer if unset password in windows10 pro

@Wael3bbas
Copy link

It works with me after clicking in Reset Credentials under Shared Drivers and sharing the driver again and enter username and password.

I think the issue was changing user password.

@kanpeki
Copy link

kanpeki commented Aug 5, 2019

Enabling Smb protocol fixed it for me. (run Set-SmbServerConfiguration -EnableSMB2Protocol $true in Powershell)

@HBouch
Copy link

HBouch commented Aug 7, 2019

Enabling Smb protocol fixed it for me. (run Set-SmbServerConfiguration -EnableSMB2Protocol $true in Powershell)

Using Windows 10 Enterprise Edition ?

@RaphaelSilva
Copy link

I reset to factory defaults before share my drive D:

Running this command in a supervisord PowerShell

Set-NetConnectionProfile -interfacealias "vEthernet (DockerNAT)" -NetworkCategory Public

Then, I shared my drive D and you run the command again:
Set-NetConnectionProfile -interfacealias "vEthernet (DockerNAT)" -NetworkCategory Private

Done! Now the sharing is able to see the host folder

@JettJones
Copy link

In my case the workaround was to make a local user, and use those credentials to share my drive. My main user is from an active directory domain, which I'm guessing is not supported. Many logs follow...

A failed login with my domain account:

[16:30:39.062][SharedDrivesSettings][Info   ] Apply shared drive settings
[16:30:39.066][NamedPipeClient   ][Info   ] Sending app/version()...
[16:30:39.070][NamedPipeClient   ][Info   ] Received response for app/version
[16:30:39.070][NamedPipeClient   ][Info   ] Sending filesharing/mount(All, C, MYWORKDOMAIN\jettjones:**********, Docker.Core.Settings)...
[16:30:39.067][NamedPipeServer   ][Info   ] app/version()
[16:30:39.067][NamedPipeServer   ][Info   ] app/version done in 00:00:00.
[16:30:39.071][NamedPipeServer   ][Info   ] filesharing/mount(All, C, MYWORKDOMAIN\jettjones:**********, Docker.Core.Settings)
[16:30:39.071][SambaShare        ][Info   ] Mount C
[16:30:39.260][Cmd               ][Info   ] This shared resource does not exist.
[16:30:39.260][Cmd               ][Info   ] More help is available by typing NET HELPMSG 2310.
[16:30:39.264][SambaShare        ][Info   ] "C" is not shared
[16:30:39.264][SambaShare        ][Info   ] Creating share "C:" as "C" with Full Control to "MYWORKDOMAIN\jettjones"
[16:30:39.383][Cmd               ][Info   ] C was shared successfully.
[16:30:39.461][Cmd               ][Info   ] Share name        C
[16:30:39.461][Cmd               ][Info   ] Path              C:\
[16:30:39.461][Cmd               ][Info   ] Remark            
[16:30:39.461][Cmd               ][Info   ] Maximum users     No limit
[16:30:39.462][Cmd               ][Info   ] Users             
[16:30:39.462][Cmd               ][Info   ] Caching           Caching disabled
[16:30:39.462][Cmd               ][Info   ] Permission        MYWORKDOMAIN\jettjones, FULL
[16:30:39.462][Cmd               ][Info   ] The command completed successfully.
[16:30:39.467][SambaShare        ][Info   ] "C" is shared
[16:30:39.528][SambaShare        ][Info   ] Username: jettjones
[16:30:39.528][SambaShare        ][Info   ] Host IP: 10.0.75.1
[16:30:39.528][SambaShare        ][Info   ] Cifs options: noperm,iocharset=utf8,dir_mode=0777,nobrl,mfsymlinks,vers=3.02,domain=MYWORKDOMAIN,sec=ntlmsspi
[16:30:39.548][Moby              ][Info   ] [   91.571644] Status code returned 0xc000006d STATUS_LOGON_FAILURE
[16:30:39.553][Moby              ][Info   ] [   91.576957] CIFS VFS: Send error in SessSetup = -13
[16:30:39.559][Moby              ][Info   ] [   91.581935] CIFS VFS: cifs_mount failed w/return code = -13
[16:30:39.566][SambaShare        ][Error  ] Unable to mount C drive: unexpected error: System.AggregateException: One or more errors occurred. ---> Docker.Backend.HttpBadResponseException: Exception of type 'Docker.Backend.HttpBadResponseException' was thrown.
   at Docker.Backend.HttpClientExtensions.<ParseResponseBodyAsJsonAsync>d__2`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Docker.Backend.HttpClientExtensions.<PostJsonWithJsonResponseAsync>d__1`1.MoveNext()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at Docker.Backend.LifecycleClient.Mount(MountRequest req)
   at Docker.Backend.SambaShare.MountInMoby(String drive, Credential cred, UserNameAndDomain info, String options, String ip)
---> (Inner Exception #0) Docker.Backend.HttpBadResponseException: Exception of type 'Docker.Backend.HttpBadResponseException' was thrown.
   at Docker.Backend.HttpClientExtensions.<ParseResponseBodyAsJsonAsync>d__2`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Docker.Backend.HttpClientExtensions.<PostJsonWithJsonResponseAsync>d__1`1.MoveNext()<---

[16:30:39.566][SambaShare        ][Info   ] Removing share "C"
[16:30:39.639][SambaShare        ][Info   ] Mount C
[16:30:39.799][Cmd               ][Info   ] This shared resource does not exist.
[16:30:39.799][Cmd               ][Info   ] More help is available by typing NET HELPMSG 2310.
[16:30:39.804][SambaShare        ][Info   ] "C" is not shared
[16:30:39.804][SambaShare        ][Info   ] Creating share "C:" as "C" with Full Control to "jettjones"
[16:30:39.872][Cmd               ][Info   ] System error 1332 has occurred.
[16:30:39.874][Cmd               ][Info   ] No mapping between account names and security IDs was done.
[16:30:39.878][SambaShare        ][Error  ] Failed to create share "C:" as "C" with Full Control to "jettjones" with code: 2
[16:30:39.933][Cmd               ][Info   ] This shared resource does not exist.
[16:30:39.933][Cmd               ][Info   ] More help is available by typing NET HELPMSG 2310.
[16:30:39.938][NamedPipeClient   ][Info   ] Received response for filesharing/mount
[16:30:39.937][SambaShare        ][Info   ] "C" is not shared
[16:30:39.937][NamedPipeServer   ][Info   ] filesharing/mount done in 00:00:00.8659979.`

Here is the successful login with the local account:

[16:30:50.820][MountCredentialAsker][Info   ] Storing credentials: LOCALHOST\Jett:***********
[16:30:50.828][NamedPipeClient   ][Info   ] Sending app/version()...
[16:30:50.829][NamedPipeClient   ][Info   ] Received response for app/version
[16:30:50.829][NamedPipeServer   ][Info   ] app/version()
[16:30:50.832][NamedPipeClient   ][Info   ] Sending filesharing/mount(All, C, LOCALHOST\Jett:**********, Docker.Core.Settings)...
[16:30:50.829][NamedPipeServer   ][Info   ] app/version done in 00:00:00.
[16:30:50.834][NamedPipeServer   ][Info   ] filesharing/mount(All, C, LOCALHOST\Jett:**********, Docker.Core.Settings)
[16:30:50.834][SambaShare        ][Info   ] Mount C
[16:30:50.991][Cmd               ][Info   ] This shared resource does not exist.
[16:30:50.992][Cmd               ][Info   ] More help is available by typing NET HELPMSG 2310.
[16:30:50.996][SambaShare        ][Info   ] "C" is not shared
[16:30:50.996][SambaShare        ][Info   ] Creating share "C:" as "C" with Full Control to "LOCALHOST\Jett"
[16:30:51.061][Cmd               ][Info   ] System error 1332 has occurred.
[16:30:51.061][Cmd               ][Info   ] No mapping between account names and security IDs was done.
[16:30:51.066][SambaShare        ][Error  ] Failed to create share "C:" as "C" with Full Control to "LOCALHOST\Jett" with code: 2
[16:30:51.125][Cmd               ][Info   ] This shared resource does not exist.
[16:30:51.125][Cmd               ][Info   ] More help is available by typing NET HELPMSG 2310.
[16:30:51.129][SambaShare        ][Info   ] "C" is not shared
[16:30:51.129][SambaShare        ][Info   ] Mount C
[16:30:51.280][Cmd               ][Info   ] This shared resource does not exist.
[16:30:51.280][Cmd               ][Info   ] More help is available by typing NET HELPMSG 2310.
[16:30:51.285][SambaShare        ][Info   ] "C" is not shared
[16:30:51.285][SambaShare        ][Info   ] Creating share "C:" as "C" with Full Control to "Jett"
[16:30:51.402][Cmd               ][Info   ] C was shared successfully.
[16:30:51.468][Cmd               ][Info   ] Share name        C
[16:30:51.468][Cmd               ][Info   ] Path              C:\
[16:30:51.468][Cmd               ][Info   ] Remark            
[16:30:51.468][Cmd               ][Info   ] Maximum users     No limit
[16:30:51.469][Cmd               ][Info   ] Users             
[16:30:51.469][Cmd               ][Info   ] Caching           Caching disabled
[16:30:51.469][Cmd               ][Info   ] Permission        JETT-LAPTOP\Jett, FULL
[16:30:51.469][Cmd               ][Info   ] The command completed successfully.
[16:30:51.474][SambaShare        ][Info   ] "C" is shared
[16:30:51.479][SambaShare        ][Info   ] Username: Jett
[16:30:51.479][SambaShare        ][Info   ] Host IP: 10.0.75.1
[16:30:51.479][SambaShare        ][Info   ] Cifs options: noperm,iocharset=utf8,dir_mode=0777,nobrl,mfsymlinks,vers=3.02,domain=JETT-LAPTOP,sec=ntlmsspi
[16:30:51.508][NamedPipeClient   ][Info   ] Received response for filesharing/mount
[16:30:51.508][GoBackendProcess  ][Info   ] error CloseWrite to: The pipe is being closed.
[16:30:51.508][NamedPipeServer   ][Info   ] filesharing/mount done in 00:00:00.6746499.

In the windows event viewer (eventvwr.msc) during the failed login, I see this:

Log Name:      Security
Source:        Microsoft-Windows-Security-Auditing
Date:          9/30/2019 4:29:51 PM
Event ID:      4625
Task Category: Logon
Level:         Information
Keywords:      Audit Failure
User:          N/A
Computer:      Jett-Laptop
Description:
An account failed to log on.

Subject:
	Security ID:		NULL SID
	Account Name:		-
	Account Domain:		-
	Logon ID:		0x0

Logon Type:			3

Account For Which Logon Failed:
	Security ID:		NULL SID
	Account Name:		jettjones
	Account Domain:		MYWORKDOMAIN

Failure Information:
	Failure Reason:		Unknown user name or bad password.
	Status:			0xC000006D
	Sub Status:		0xC0000064

Process Information:
	Caller Process ID:	0x0
	Caller Process Name:	-

Network Information:
	Workstation Name:	-
	Source Network Address:	10.0.0.2
	Source Port:		53994

Detailed Authentication Information:
	Logon Process:		NtLmSsp 
	Authentication Package:	NTLM
	Transited Services:	-
	Package Name (NTLM only):	-
	Key Length:		0

And if there are questions, I did reset docker-for-windows and restart my machine, before trying a second user.

The login failure event is not appearing in the docker UI, so there's one issue there. The failure itself may be caused by that missing security ID. But that's guesswork, so just leaving this here in case it helps someone.

@bgever
Copy link

bgever commented Oct 4, 2019

All these didn't work:

  • Resetting to factory defaults.
  • Reset credentials.
  • Set-NetConnectionProfile -interfacealias "vEthernet (DockerNAT)" -NetworkCategory Public

The only solution was to create a new local account with mmc:

  • WinKey+R, msc, OK
  • File | Add/Remove Snap-in...
  • Select Local Users and Groups then Add >
  • Local Computer, then Finish, then OK
  • Open Local Users and Groups (Local), then Users
  • Action | New User...
  • Enter User name and passwords
  • Untick User must change password at next logon
  • Tick User cannot change password
  • Tick Password never expires
  • Double-click the created user
  • Tab Member of and Add...
  • Enter Administrators and click Check Names
  • OK to save
  • In File explorer go to the folder you'd like to map as a volume, and add the user and give them full control

@gork74
Copy link

gork74 commented Oct 11, 2019

This worked for me on Windows 10 Pro:
My account was formerly a local admin account, then converted to a Microsoft account.
Using the Microsoft Account Email and Password as credentials did work.

@johnknoop
Copy link

Also stopped working after upgrade my account to AD.

This article helped: https://tomssl.com/2018/01/11/sharing-your-c-drive-with-docker-for-windows-when-using-azure-active-directory-azuread-aad/

@RiskofStorm
Copy link

RiskofStorm commented Oct 21, 2019

I guess it's better to raise server on linux rather to mess up with win10. Idk why LinuxOnWindows is needed, to EEE? (because docker won't installs without headacke. I actually don't even bother to install docker via LoW. low chance it would work)

@cakelly
Copy link

cakelly commented Oct 21, 2019

If your firewall is configured to allow traffic on the Hyper-V network, and your drive is shared in "Shared Drives", this does work. There are lots of layers in Windows networking, as with ogres and onions. But with patience, it can be coaxed into working. I didn't have to add users, but I did move the data I wanted to share into the Public user space.

@aitorpazos
Copy link

Just the fact that the firewall config may break Docker volumes in Windows is a no-go IMHO for corporate environments where networking responsibilities/policies may be very de-coupled from the developers requirements, or even conflicting. That is the good thing of the VBox docker-machine approach, it brings its own shared volumes driver, no coupling with unrelated networking policies.

@danielfeng7171
Copy link

All these didn't work:

  • Resetting to factory defaults.
  • Reset credentials.
  • Set-NetConnectionProfile -interfacealias "vEthernet (DockerNAT)" -NetworkCategory Public

The only solution was to create a new local account with mmc:

  • WinKey+R, msc, OK
  • File | Add/Remove Snap-in...
  • Select Local Users and Groups then Add >
  • Local Computer, then Finish, then OK
  • Open Local Users and Groups (Local), then Users
  • Action | New User...
  • Enter User name and passwords
  • Untick User must change password at next logon
  • Tick User cannot change password
  • Tick Password never expires
  • Double-click the created user
  • Tab Member of and Add...
  • Enter Administrators and click Check Names
  • OK to save
  • In File explorer go to the folder you'd like to map as a volume, and add the user and give them full control

This solution worked for me! Thanks!

@jjborie
Copy link

jjborie commented Dec 10, 2019

Hello,

I found that adding your local user to Remote Desktop User group do the trick for me no need admin permission.

Best

@jlu1202
Copy link

jlu1202 commented Dec 17, 2019

I had the same issue with my AD account after changing the password so I did a "Reset to factory default" and was able to re-share my C drive with my AD account again.

@stephen-turner
Copy link
Contributor

This is fixed with the new filesharing implementation in 2.2.0.3, so closing this ticket.

@leonildojuniorzup
Copy link

leonildojuniorzup commented Mar 1, 2020

After update the docker for windows to latest version(Docker version 18.06.1-ce, build e68fc7a). I have the same issue. when I want to share C disk, a window came out. ask for password. I can't use my windows account to deal with it. what kind of account and password is required?

Anyone who have the same issue, Please follow this way: Settings→Reset→Reset to factory default
Maybe it can solves your problem, At least works for me.
Anyway, choose Microsoft Windows is my biggest mistake!

Thank you very much @mak003, your tip worked well for me!

@docker-robott
Copy link
Collaborator

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked

@docker docker locked and limited conversation to collaborators Jul 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests