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

Unable to Share C Drive #1694

Closed
billbodapolypore opened this issue Feb 12, 2018 · 16 comments

Comments

@billbodapolypore
Copy link

commented Feb 12, 2018

Expected behavior

From Shared Drive tab I should be able to share my C drive

Actual behavior

After the credential prompt the checkbox next to the drive unchecks.

I also try the command displayed on that screen:
docker run --rm -v c:/Users:/data alpine ls /data

I get this error after the credential prompt:
docker: Error response from daemon: An error occured while sharing drive.

Details from the logs:

[16:08:31.131][NamedPipeClient][Info   ] Sending Version()...
[16:08:31.133][NamedPipeClient][Info   ] Received response for Version
[16:08:31.133][NamedPipeClient][Info   ] Sending Mount(C, , Docker.Core.Settings)...
[16:08:31.132][NamedPipeServer][Info   ] Version()
[16:08:31.133][NamedPipeServer][Info   ] Version done in 00:00:00.0004985.
[16:08:31.136][NamedPipeServer][Info   ] Mount(C, , Docker.Core.Settings)
[16:08:31.296][NamedPipeClient][Info   ] Received response for Mount
[16:08:31.296][NamedPipeServer][Info   ] Mount done in 00:00:00.1597767.
[16:08:40.495][CredentialAsker][Info   ] Storing credentials: removed\removed:***********
[16:08:40.496][CredentialAsker][Error  ] Failed to retrieve the user's credentials: A specified logon session does not exist. It may already have been terminated

Information

Diagnostic ID:
2B13F88F-097A-4E5F-B048-90CDCA85F901/2018-02-12_16-22-07

Steps to reproduce the behavior

  1. Open Settings from task bar icon
  2. Click Shared Drives
  3. Check C drive
  4. Click Apply
  5. Enter credentials in prompt

@ebriney ebriney self-assigned this Feb 13, 2018

@ebriney

This comment has been minimized.

Copy link
Member

commented Feb 13, 2018

Hi @billbodapolypore
can you try to unshare your C drive manually:

  • second click on C drive - properties:
    diskproperties-sharingadvanced
  • then in advance sharing - untick Share this folder:
    advancedsharing

then retry to enable filesharing in Docker Settings

@billbodapolypore

This comment has been minimized.

Copy link
Author

commented Feb 13, 2018

@ebriney Thanks for the response.

It looks like my C: drive is not currently shared:
image

@ebriney

This comment has been minimized.

Copy link
Member

commented Feb 13, 2018

Can you try to share it manually?
PS: don't forget add your user in permission.

@billbodapolypore

This comment has been minimized.

Copy link
Author

commented Feb 13, 2018

I made some assumptions based on your suggestion to "share it manually". Please let me know if I misunderstood.

  1. I went to the same properties dialog for my C: drive. I
  2. I clicked Advanced Sharing
  3. I ticked Share this folder
    image
  4. I clicked permissions
  5. I added my user and gave Full Control
    image
  6. I restarted the Docker app (task bar icon)
  7. I went to Docker app > Settings and performed the exact same steps as in my original issue report and the same behavior occurred. Reviewing the logs the same error is occurring:
    [09:42:18.979][CredentialAsker][Error ] Failed to retrieve the user's credentials: A specified logon session does not exist. It may already have been terminated
@ebriney

This comment has been minimized.

Copy link
Member

commented Feb 14, 2018

Ok thanks.
Did you try to access your smb share from another computer?
It seems that either you have special network policies or the credentials are wrong (domain\user pass)

@denvit

This comment has been minimized.

Copy link

commented Feb 14, 2018

I have the same problem. Uploaded my diagnostics - ID: 3A571585-9253-4DFA-8BB7-003423356E11/2018-02-14_18-43-16

EDIT: I've found the reason. Turn off your firewall (Windows or firewall in antivirus program), enable sharing folders and turn on firewall back.

@billbodapolypore

This comment has been minimized.

Copy link
Author

commented Feb 14, 2018

@ebriney I can access the SMB share from another machine

@billbodapolypore

This comment has been minimized.

Copy link
Author

commented Feb 14, 2018

I tried doing something a bit different and didn't get an error this time but also I'm not getting directory results like I should:
image

At this point I feel I'll have to chalk this up to some sort of firewall / group policy issue that my company has put restriction on my machine. I wish we could find some sort of work-around.

@billbodapolypore

This comment has been minimized.

Copy link
Author

commented Feb 14, 2018

One last thing I found. I also get the same error when I click on Credential Manager in the control panel:
image

Researching this general error I found that typically it comes from a Group Policy setting, however it is disabled on my system:
image

Does Docker user this Windows Credential Manager? Perhaps this is the root of our issue?

@robotdad

This comment has been minimized.

Copy link

commented Feb 19, 2018

I've hit this with the stable channel 17.12 as well. The issue seems to be sharing with a domain account does not work. I had to create a new local user with access to the C drive to work around this.

@docker-desktop-robot

This comment has been minimized.

Copy link
Collaborator

commented Jul 30, 2018

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

@werebear73

This comment has been minimized.

Copy link

commented Aug 20, 2018

I'm having this issue too but not on a machine attached to a domain. It is Windows 10 Workstation though.

/remove-lifecycle stale

@l8nite

This comment has been minimized.

Copy link

commented Nov 6, 2018

/remove-lifecycle stale

@docker-desktop-robot

This comment has been minimized.

Copy link
Collaborator

commented Feb 4, 2019

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

@btodts

This comment has been minimized.

Copy link

commented Apr 18, 2019

/remove-lifecycle stale

I am hitting this with a Domain Account as well

@Cherishty

This comment has been minimized.

Copy link

commented Apr 23, 2019

+1 any update for this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
10 participants
You can’t perform that action at this time.