Cant mount/share disk (tried "all" solutions)
### Expected behavior I check "C" as shared drive and click "apply" enter my credentials, and C should remain checked without any errors in the log file.
### Actual behavior I check "C" as shared drive and click "apply" enter my credentials, and C gets "unchecked" with errors in my log file.
### Information Diagnostics ID: 1D089BD1-E591-4518-8FEE-F06D59F72F25/2018-04-12_09-32-03
Version 18.03.0-ce-win59 (16762) Channel: stable
Win10 64bit 1703
I have tried with the SMB settings in registry as described here: [313] (https://github.com/docker/for-win/issues/313) I have tried changing vNet DockerNAT to private: [367] (https://github.com/docker/for-win/issues/367) I have tried re-installing File and Printer Sharing: [738] (https://github.com/docker/for-win/issues/738)
Firewall rules are correct
netsh advfirewall firewall show rule name=DockerSmbMount
Rule Name: DockerSmbMount
Enabled: Yes Direction: In Profiles: Domain,Private,Public Grouping: LocalIP: 10.0.75.1/32 RemoteIP: 10.0.75.2/32 Protocol: TCP LocalPort: 445 RemotePort: Any Edge traversal: No Action: Allow Ok.
netsh advfirewall firewall show rule name="File and Printer Sharing (SMB-In)"
Rule Name: File and Printer Sharing (SMB-In)
Enabled: Yes Direction: In Profiles: Public Grouping: File and Printer Sharing LocalIP: Any RemoteIP: Any Protocol: TCP LocalPort: 445 RemotePort: Any Edge traversal: No Action: Allow
Rule Name: File and Printer Sharing (SMB-In)
Enabled: Yes Direction: In Profiles: Private Grouping: File and Printer Sharing LocalIP: Any RemoteIP: Any Protocol: TCP LocalPort: 445 RemotePort: Any Edge traversal: Yes Action: Allow
Rule Name: File and Printer Sharing (SMB-In)
Enabled: Yes Direction: In Profiles: Domain Grouping: File and Printer Sharing LocalIP: Any RemoteIP: Any Protocol: TCP LocalPort: 445 RemotePort: Any Edge traversal: No Action: Allow Ok.
Log file:
[10:36:20.717][SharedDrivesSettings][Info ] Apply shared drive settings
[10:36:20.722][NamedPipeClient][Info ] Sending Version()...
[10:36:21.733][NamedPipeClient][Info ] Received response for Version
[10:36:21.733][NamedPipeClient][Info ] Sending Mount(All, C, , Docker.Core.Settings)...
[10:36:21.732][NamedPipeServer][Info ] Version()
[10:36:21.732][NamedPipeServer][Info ] Version done in 00:00:00.
[10:36:21.738][NamedPipeServer][Info ] Mount(All, C, , Docker.Core.Settings)
[10:36:22.142][NamedPipeClient][Info ] Received response for Mount
[10:36:22.142][NamedPipeServer][Info ] Mount done in 00:00:00.4040025.
[10:36:27.490][CredentialAsker][Info ] Storing credentials: DOMAIN\fclaess3:***********
[10:36:27.518][NamedPipeClient][Info ] Sending Version()...
[10:36:27.519][NamedPipeClient][Info ] Received response for Version
[10:36:27.520][NamedPipeClient][Info ] Sending Mount(All, C, DOMAIN\fclaess3:, Docker.Core.Settings)...
[10:36:27.519][NamedPipeServer][Info ] Version()
[10:36:27.519][NamedPipeServer][Info ] Version done in 00:00:00.
[10:36:27.521][NamedPipeServer][Info ] Mount(All, C, DOMAIN\fclaess3:, Docker.Core.Settings)
[10:36:27.646][SambaShare ][Info ] Mount C
[10:36:27.856][Cmd ][Info ] Share name C
[10:36:27.856][Cmd ][Info ] Path C:
[10:36:27.856][Cmd ][Info ] Remark
[10:36:27.856][Cmd ][Info ] Maximum users No limit
[10:36:27.857][Cmd ][Info ] Users FCLAESS3
[10:36:27.857][Cmd ][Info ] Caching Manual caching of documents
[10:36:27.857][Cmd ][Info ] Permission Everyone, FULL
[10:36:27.857][Cmd ][Info ] The command completed successfully.
[10:36:27.861][SambaShare ][Info ] "C" is shared
[10:36:28.288][SambaShare ][Info ] Username: FCLAESS3
[10:36:28.288][SambaShare ][Info ] Host IP: 10.0.75.1
[10:36:28.288][SambaShare ][Info ] Cifs options: noperm,iocharset=utf8,nobrl,mfsymlinks,vers=3.02,domain=DOMAIN,sec=ntlmsspi
[10:36:28.686][ApiProxy ][Info ] time="2018-04-12T10:36:28+02:00" msg="proxy >> GET /_ping\n"
[10:36:28.686][ApiProxy ][Info ] time="2018-04-12T10:36:28+02:00" msg="Dial Hyper-V socket 15f98284-9c62-4543-920e-007a6ae3aa1a:23a432c2-537a-4291-bcb5-d62504644739"
[10:36:28.686][ApiProxy ][Info ] time="2018-04-12T10:36:28+02:00" msg="Successfully dialed Hyper-V socket 15f98284-9c62-4543-920e-007a6ae3aa1a:23a432c2-537a-4291-bcb5-d62504644739"
[10:36:28.687][ApiProxy ][Info ] time="2018-04-12T10:36:28+02:00" msg="proxy << GET /_ping\n"
[10:36:28.688][ApiProxy ][Info ] time="2018-04-12T10:36:28+02:00" msg="proxy >> POST /v1.37/images/load?quiet=1\n"
[10:36:28.688][ApiProxy ][Info ] time="2018-04-12T10:36:28+02:00" msg="Dial Hyper-V socket 15f98284-9c62-4543-920e-007a6ae3aa1a:23a432c2-537a-4291-bcb5-d62504644739"
[10:36:28.697][ApiProxy ][Info ] time="2018-04-12T10:36:28+02:00" msg="Successfully dialed Hyper-V socket 15f98284-9c62-4543-920e-007a6ae3aa1a:23a432c2-537a-4291-bcb5-d62504644739"
[10:36:28.826][ApiProxy ][Info ] time="2018-04-12T10:36:28+02:00" msg="proxy << POST /v1.37/images/load?quiet=1\n"
[10:36:29.036][ApiProxy ][Info ] time="2018-04-12T10:36:29+02:00" msg="proxy >> GET /_ping\n"
[10:36:29.036][ApiProxy ][Info ] time="2018-04-12T10:36:29+02:00" msg="Dial Hyper-V socket 15f98284-9c62-4543-920e-007a6ae3aa1a:23a432c2-537a-4291-bcb5-d62504644739"
[10:36:29.037][ApiProxy ][Info ] time="2018-04-12T10:36:29+02:00" msg="Successfully dialed Hyper-V socket 15f98284-9c62-4543-920e-007a6ae3aa1a:23a432c2-537a-4291-bcb5-d62504644739"
[10:36:29.038][ApiProxy ][Info ] time="2018-04-12T10:36:29+02:00" msg="proxy << GET /_ping\n"
[10:36:29.040][ApiProxy ][Info ] time="2018-04-12T10:36:29+02:00" msg="proxy >> POST /v1.37/containers/create [rewriteBinds]\n"
[10:36:29.040][ApiProxy ][Info ] time="2018-04-12T10:36:29+02:00" msg="Rewrote mount /run/config/docker:/host_mnt (volumeDriver=) to /run/config/docker:/host_mnt"
[10:36:29.040][ApiProxy ][Info ] time="2018-04-12T10:36:29+02:00" msg="proxy >> POST /v1.37/containers/create\n"
[10:36:29.040][ApiProxy ][Info ] time="2018-04-12T10:36:29+02:00" msg="Dial Hyper-V socket 15f98284-9c62-4543-920e-007a6ae3aa1a:23a432c2-537a-4291-bcb5-d62504644739"
[10:36:29.041][ApiProxy ][Info ] time="2018-04-12T10:36:29+02:00" msg="Successfully dialed Hyper-V socket 15f98284-9c62-4543-920e-007a6ae3aa1a:23a432c2-537a-4291-bcb5-d62504644739"
[10:36:29.198][ApiProxy ][Info ] time="2018-04-12T10:36:29+02:00" msg="proxy << POST /v1.37/containers/create\n"
[10:36:29.199][ApiProxy ][Info ] time="2018-04-12T10:36:29+02:00" msg="proxy >> POST /v1.37/containers/1d71e9b837414283f3298ae1c6a77f4ac8bc467136b5ec3fed2fb196cc9cca22/attach?stderr=1&stdin=1&stdout=1&stream=1\n"
[10:36:29.199][ApiProxy ][Info ] time="2018-04-12T10:36:29+02:00" msg="Dial Hyper-V socket 15f98284-9c62-4543-920e-007a6ae3aa1a:23a432c2-537a-4291-bcb5-d62504644739"
[10:36:29.206][ApiProxy ][Info ] time="2018-04-12T10:36:29+02:00" msg="Successfully dialed Hyper-V socket 15f98284-9c62-4543-920e-007a6ae3aa1a:23a432c2-537a-4291-bcb5-d62504644739"
[10:36:29.207][ApiProxy ][Info ] time="2018-04-12T10:36:29+02:00" msg="Upgrading to raw stream"
[10:36:29.207][ApiProxy ][Info ] time="2018-04-12T10:36:29+02:00" msg="proxy >> POST /v1.37/containers/1d71e9b837414283f3298ae1c6a77f4ac8bc467136b5ec3fed2fb196cc9cca22/wait?condition=removed\n"
[10:36:29.207][ApiProxy ][Info ] time="2018-04-12T10:36:29+02:00" msg="Dial Hyper-V socket 15f98284-9c62-4543-920e-007a6ae3aa1a:23a432c2-537a-4291-bcb5-d62504644739"
[10:36:29.208][ApiProxy ][Info ] time="2018-04-12T10:36:29+02:00" msg="Successfully dialed Hyper-V socket 15f98284-9c62-4543-920e-007a6ae3aa1a:23a432c2-537a-4291-bcb5-d62504644739"
[10:36:29.210][ApiProxy ][Info ] time="2018-04-12T10:36:29+02:00" msg="proxy >> POST /v1.37/containers/1d71e9b837414283f3298ae1c6a77f4ac8bc467136b5ec3fed2fb196cc9cca22/start [start]\n"
[10:36:29.210][ApiProxy ][Info ] time="2018-04-12T10:36:29+02:00" msg="proxy >> POST /v1.37/containers/1d71e9b837414283f3298ae1c6a77f4ac8bc467136b5ec3fed2fb196cc9cca22/start\n"
[10:36:29.210][ApiProxy ][Info ] time="2018-04-12T10:36:29+02:00" msg="Dial Hyper-V socket 15f98284-9c62-4543-920e-007a6ae3aa1a:23a432c2-537a-4291-bcb5-d62504644739"
[10:36:29.211][ApiProxy ][Info ] time="2018-04-12T10:36:29+02:00" msg="Successfully dialed Hyper-V socket 15f98284-9c62-4543-920e-007a6ae3aa1a:23a432c2-537a-4291-bcb5-d62504644739"
[10:36:29.260][Moby ][Info ] [ 1982.499139] docker0: port 1(veth4fef4c0) entered blocking state
[10:36:29.295][Moby ][Info ] [ 1982.537160] docker0: port 1(veth4fef4c0) entered disabled state
[10:36:29.324][Moby ][Info ] [ 1982.572311] device veth4fef4c0 entered promiscuous mode
[10:36:29.357][Moby ][Info ] [ 1982.601095] IPv6: ADDRCONF(NETDEV_UP): veth4fef4c0: link is not ready
[10:36:29.584][Moby ][Info ] [ 1982.817935] IPVS: Creating netns size=2104 id=28
[10:36:29.610][Moby ][Info ] [ 1982.861891] IPVS: ftp: loaded support on port[0] = 21
[10:36:29.748][Moby ][Info ] [ 1982.980832] eth0: renamed from veth10b1a3f
[10:36:29.821][Moby ][Info ] [ 1983.060573] IPv6: ADDRCONF(NETDEV_CHANGE): veth4fef4c0: link becomes ready
[10:36:29.855][Moby ][Info ] [ 1983.098236] docker0: port 1(veth4fef4c0) entered blocking state
[10:36:29.895][Moby ][Info ] [ 1983.132185] docker0: port 1(veth4fef4c0) entered forwarding state
[10:36:30.034][ApiProxy ][Info ] time="2018-04-12T10:36:30+02:00" msg="proxy << POST /v1.37/containers/1d71e9b837414283f3298ae1c6a77f4ac8bc467136b5ec3fed2fb196cc9cca22/start\n"
[10:36:30.182][Moby ][Info ] [ 1983.418368] Status code returned 0xc000015b STATUS_LOGON_TYPE_NOT_GRANTED
[10:36:30.209][Moby ][Info ] [ 1983.459346] CIFS VFS: Send error in SessSetup = -5
[10:36:30.241][Moby ][Info ] [ 1983.486361] CIFS VFS: cifs_mount failed w/return code = -5
[10:36:30.263][ApiProxy ][Info ] time="2018-04-12T10:36:30+02:00" msg="proxy << POST /v1.37/containers/1d71e9b837414283f3298ae1c6a77f4ac8bc467136b5ec3fed2fb196cc9cca22/attach?stderr=1&stdin=1&stdout=1&stream=1\n"
[10:36:30.372][Moby ][Info ] [ 1983.587949] docker0: port 1(veth4fef4c0) entered disabled state
[10:36:30.402][Moby ][Info ] [ 1983.650622] veth10b1a3f: renamed from eth0
[10:36:30.567][Moby ][Info ] [ 1983.769149] docker0: port 1(veth4fef4c0) entered disabled state
[10:36:30.607][Moby ][Info ] [ 1983.846684] device veth4fef4c0 left promiscuous mode
[10:36:30.646][Moby ][Info ] [ 1983.884609] docker0: port 1(veth4fef4c0) entered disabled state
[10:36:31.036][ApiProxy ][Info ] time="2018-04-12T10:36:31+02:00" msg="proxy << POST /v1.37/containers/1d71e9b837414283f3298ae1c6a77f4ac8bc467136b5ec3fed2fb196cc9cca22/wait?condition=removed\n"
[10:36:31.045][SambaShare ][Error ] Unable to mount C drive: 10.0.75.1 (10.0.75.1:445) open
rm: cannot remove '/c': No such file or directory
rm: cannot remove '/C': No such file or directory
umount: /host_mnt/c: not mounted.
mount.cifs kernel mount options: ip=10.0.75.1,unc=\10.0.75.1\C,noperm,iocharset=utf8,nobrl,mfsymlinks,vers=3.02,sec=ntlmsspi,user=FCLAESS3,domain=DOMAIN,pass=********
mount error(5): I/O error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
[10:36:31.046][SambaShare ][Info ] Removing share C [10:36:55.855][SambaShare ][Error ] Removing share "C" timed out
### Steps to reproduce the behavior Se section for actual behavior
(sorry for the weird markdown.... I gave up)
When I was browsing the Diagnostic log I found the following (Is it related? How to solve?)
ProviderName: Microsoft-Windows-Hyper-V-Integration
TimeCreated Id LevelDisplayName Message
2018-04-12 09:32:30 4092 Error 'MobyLinuxVM': The Data Exc hange integration service i s either not enabled, not r unning or not initialized. (Virtual machine ID F2DFFAB D-02D1-4FC6-AAB0-6C45BF8204 B4)
ProviderName: Microsoft-Windows-SMBServer
TimeCreated Id LevelDisplayName Message
2018-04-12 09:31:21 551 Error SMB Session Authentication Failure
Client Name: \\10.0.75.2
Client Address: 10.0.75.2:5
1786
User Name:
Session ID: 0x800000000059
Status: A user has requeste
d a type of logon (e.g., in
teractive or network) that
has not been granted. An ad
ministrator has control ove
r who may logon interactive
ly and through the network.
(0xC000015B)
SPN: session setup failed b
efore the SPN could be quer
ied
SPN Validation Policy: SPN
optional / no validation
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale comment.
Stale issues will be closed after an additional 30d of inactivity.
Prevent issues from auto-closing with an /lifecycle frozen comment.
If this issue is safe to close now please do so.
Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle stale
/remove-lifecycle stale
I am having the same issue here.
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale comment.
Stale issues will be closed after an additional 30d of inactivity.
Prevent issues from auto-closing with an /lifecycle frozen comment.
If this issue is safe to close now please do so.
Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle stale
I was having the same issue regarding SPN optional / no validation. After much research and fiddling, the following steps resolved the issue for me:
- Win + R -> gpedit.msc
- Traverse to
Computer Configuration -> Windows Settings -> Security Settings -> Local Policies -> Security Options - Set
Network security: Restrict NTLM: Incoming NTLM trafficfromDeny alltoDeny all domain accounts - Try to share your drive again using your credentials If this still does not work, try setting the policy to "Allow all"
Let me know if that works for you.
/remove-lifecycle stale
I'm having the same issue with version 2.0.4.1. I noticed the "STATUS_LOGON_TYPE_NOT_GRANTED" in the logs and found it is related to the policy called "Access this computer from the network", but changing that policy locally has no effect. I am using a local admin account, but my machine is linked to AAD (trying to find a workaround for the other issue with using AAD accounts).
Changing the policy for "Deny access to this computer from the network" as suggested in #1565 have solved this issue for me.
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale comment.
Stale issues will be closed after an additional 30d of inactivity.
Prevent issues from auto-closing with an /lifecycle frozen comment.
If this issue is safe to close now please do so.
Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle stale
For me the solution to the error 0xc000015b STATUS_LOGON_TYPE_NOT_GRANTED was to add my user to the group Remote Desktop Users, since in our domain the group policy Access this computer from the network was limited to the groups Administrators and Remote Desktop Users only. Depending on your domain policies you may also have to check the settings of the policy Deny access to this computer from the network.

This is fixed with the new filesharing implementation in 2.2.0.3, so closing this ticket.
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