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 drives #803

Closed
dimitriadams opened this issue Jun 8, 2017 · 27 comments
Closed

Unable to share drives #803

dimitriadams opened this issue Jun 8, 2017 · 27 comments

Comments

@dimitriadams
Copy link

dimitriadams commented Jun 8, 2017

Expected behavior

C drive is shared

Actual behavior

C drive isn't shared

Information

  • Diagnostic ID 9159A2D9-E77A-4FC2-93B7-532785D767A3/2017-06-08_10-40-44
  • Docker Version: 17.03.1-cd
  • OS: Windows 10 Enterprise

Steps to reproduce the behavior

  1. In Docker For Windows select Shared Drives
  2. Click 'Reset credentials'
  3. Select C Drive
  4. Click Apply
  5. Enter credentials
  6. The C Drive is unselected again....
@lgaida
Copy link

lgaida commented Jun 8, 2017

Related to #690
QuickFix: reinstall docker4win, if that doesn't help uninstall again and switch to edge-channel version

@dimitriadams
Copy link
Author

I uninstalled docker4win, rebooted, installed the edge-channel, rebooted, tried to share again but still no success. The logfiles shows that mounting seems to be successfull with SambaShare, but with NamedPipes it gives an error: Key already exists in dictionary...
dockerlog.txt

@jasonbivins
Copy link

I tested this again, and was able to share my C: drive in the latest edge build, where I wasn't able to on the stable build.

Have you tried the reset function? Try resetting to the factory default

image

@dimitriadams
Copy link
Author

Just tried the 'Reset to factory defaults', but still no sharing

@gesch
Copy link

gesch commented Jun 13, 2017

Having the same issue with stable and edge. Tried different combinations of installs, resets and reboots. No Luck yet. Currently It is not possible to share any drive on windows.

@patelmaulik
Copy link

Same issue on Win10 Pro. Tried everything in the book

  1. re-installing file & print sharing, re-installing drivers
  2. manually opening ports although docker has already added firewall rule
  3. reset, reboot etc..etc
  4. edge & stable channel

Still no joy with shared drives.

@mohahn
Copy link

mohahn commented Jun 16, 2017

The same here. Using

  • Docker 17.03.1-ce-win12 (12058)
  • Windows 10 Pro, latest Version 1703 (Creators Update)

It seems a bit reproducable for me. Perhaps anyone can confirm this. After every re-install of Docker or "Resetting to Factory Defaults" I can add a shared drive, by providing credentials. But when adding another drive or disable and re-enable existing share, the same behaviour as above happens: after providing credentials when clicking "Apply" the shared drives are unselected again.

I want to mention, that Docker from Edge channel does not work for me, as it fails on building image with error oci runtime error: container_linux.go:262: starting container process caused "exec: \"/bin/sh\": stat /bin/sh: no such file or directory" (could be related to this)

What seems to work for me is: first, share complete drive in Windows explorer (via extended share, in german: "Erweiterte Freigabe") with all permissions to admin only. After that I can add this drive in Docker settings without error. I did not modify any other Windows or firewall settings like others suggest, only file and print sharing is enabled. Can anyone confirm this?

@jasonbivins
Copy link

Hi @dimitriadams @mohahn This is an issue in the Stable build - have you tried the latest Edge build? We just released one earlier today, 17.06 rc4 that should resolve this for you. Please try it and let me know how it goes.

@dimitriadams
Copy link
Author

I just installed the 17.06 rc4 version but still the same results. I did a 'Reset to factory defaults' to be sure but no shared drives.... :-(

@mohahn
Copy link

mohahn commented Jun 16, 2017

@jasonbivins have u read, that after installing Edge a build of images fail? Nevertheless, even with Edge, after fresh install I can add a share (like in Stable) but when editing a share or adding a new one, all shares are disabled again. For me the same behaviour like in Stable.

@pavelmaca
Copy link

pavelmaca commented Jun 27, 2017

Docker Version: 17.06 rc5

Mine Windows account is linked to the Microsft. In the lusrmgr.msc i can see that user password is marked as "User must change password at next logon" and this option can't be changed.

This worked for me as workaround:

  1. Create a new local Windows user (best to use usrmgr.msc)
  2. Set strong password (you will use it only once, so write it down to password manager)
  3. Check "Password never expire"
  4. Add user to Administrators group
  5. Open Docker setting and allow drive sharing
  6. Use newly created user credentials

@lgaida
Copy link

lgaida commented Jul 25, 2017

I got this issue again, after changing my password on windows. And i remember this was also the case when i got this issue last time. I'm requested to change my password every 2-3 months for security reasons. Looks like i have to reinstall Docker again.

While the suggested solution from @pavelmaca might work there will still be users (like me) who can not simply create a new user on their system. Docker should not corrupt shared drives when the user password has changed. Imo docker should somehow notice that the password has changed and ask for the new password to allow the shared drives. Or atleast uncheck the shared drives so a user can spot the problem and then check the drive again + authentication.

@dargmuesli
Copy link

Try the newest Edge build. Version 17.06.1-ce-rc1-win20 (12818). The issue is fixed for me there.

@dimitriadams
Copy link
Author

I just tried the new Edge build, still no luck in sharing drives.

@liri2006
Copy link

Faced the same issue, even with Edge build. Providing credentials of other admin user indeed works, but in this case this "other" user should have access to current users's folder in C:/Users/{currentUser}

@kirisky
Copy link

kirisky commented Aug 19, 2017

I ran into the same problem today.
My environment is Windows 10 Pro and docker for windows.
My port 445 is blocked by the firewall. I tried many methods, but they didn't work.
Then I found my firewall has two "block the connection" rules. They banned port 137, 139, 445 and 3389.
The rules' names are "20170415漏洞" and "20170415漏洞UDP".
So, I opened the window of the rules‘ property and turned on the "local principals" tab.
Then, I added my windows account to the "Exception."
Finally, I solved this problem.
It spends some times of mine.
I hope my experience could help someone.

@docker-robott
Copy link
Collaborator

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

@kumarharsh
Copy link

Still happens to me. I have a PIN set, but docker keeps asking for password on mounting drives. If I shut down docker and restart it, docker lets me mount the drive without asking for password again.

@dashesy
Copy link

dashesy commented May 8, 2018

Same as @kumarharsh After restarting the docker the drive is shared without askign for password!

@namnh06
Copy link

namnh06 commented May 11, 2018

I knew what happen guys.

In my case, after remove xampp in my computer, I can not share drives any more. It's block the 445 port, guess that.

Just find this one and disable it !

disable-445

@6e5
Copy link

6e5 commented May 4, 2019

Ultimate Solution:

  1. Open Powershell as Admin
  2. Run this command Set-NetConnectionProfile -interfacealias "vEthernet (DockerNAT)" -NetworkCategory Private
  3. Now go to docker settings
  4. Click on shared drives
  5. Check the drives you want to share with docker
  6. Click Apply it might ask for password
  7. Enter your password and Congratulations!!

DONE

@besil
Copy link

besil commented Jun 14, 2019

Reset to factory settings worked for me.
I hate Windows for this kind of time waste

@Yavdhesh
Copy link

I had to reset it to factory defaults.
restarted, then checked those drive, it worked.
मुझे फेक्टरी डीफोल्ट करना पडा।
पुन: शुरु किया, तब ड्राईव साझा हो गया ।

@Twosmiles
Copy link

I've tried each and every recommendation here and in other issue trackers. My problem was that the windows service called "Server" (Thank you microsoft for that) was not running and actually deactivated.
After starting it, the sharing worked just fine

@Fieel
Copy link

Fieel commented Nov 14, 2019

I got a popup after running docker-compose up - nginx mysql, inserted my microsoft account credentials and it worked. I had to try multiple times, though.

@stephen-turner
Copy link
Contributor

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

@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 Jun 22, 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