Cannot Share drives Windows10
Expected behavior
Drive is shared
Actual behavior
The checkbox is unchecked after I click on apply
Information
I'm using windows 10 and Docker version 17.12.0-ce, build c97c6d6
Steps to reproduce the behavior
- Run docker
- Go to docker settings > Shared Drives
- Select the drive to share
- Click apply
Hi @ronce96 Do you get any errors or warnings when the box is unchecked?
@jasonbivins No, the common error of the firewall doesn't appear this time.
Hello @ronce96
I have the same problem and I found a workaround. My windows account is a corporate one using Azure AD. Probably the problem is regarding how the account was created. As a work around create a new account, tell Windows that you don't have the email address for the new account and ultimately you won't login using a Microsoft account. Put a username "docker" for example, a good password, and create the account. Then edit the account to change the type to Administrator. In docker share the drive using the credential created putting your computer name before the username. Ex: DESKTOPXYZ\docker
This worked for me and the drive remains checked.
Hope it helps
Regards
@crramirez Thanks! I had the same exact issue (checkbox is unchecked after apply), this workaround fixed it.
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.
+1 I am having the same issue.
Same issure :C
I tried to reinstall whole Docker, disabling AV and firewall, but nothing changes.
I make a GIF of the attempt.
Diagnostics ID: C10628F0-4522-4D18-8C8D-6E9C52954E87/20181129163542
Same issue. Any ETA on this?
I meet the same: GIF of the attempt.
- File: C:\Users\bilibili\AppData\Local\Docker\log.txt
[16:13:05.729][SambaShare ][Error ] Unable to mount D drive: 10.22.33.1 (10.22.33.1:445) open rm: cannot remove '/d': No such file or directory rm: cannot remove '/D': No such file or directory umount: /host_mnt/d: not mounted. mount.cifs kernel mount options: ip=10.22.33.1,unc=\10.22.33.1\D,noperm,iocharset=utf8,dir_mode=0777,nobrl,mfsymlinks,vers=3.02,sec=ntlmsspi,user=higkoo,domain=BILIOPS,pass=********* mount error(13): Permission denied Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
My workaround was to remove C:\Users\Public\Documents\Hyper-V\Virtual Hard Disks folder...
Several of my team and I are experiencing this exact issue. It means we are unable to mount volumes/run containers.
My current workaround is to:
- Turn off my computer
- Pull my MacBook out of my bag
- Pretend that Docker for windows doesn't exist
This is obviously not ideal. No quoted steps here have helped.
workaround from @andalerom worked for me
Hi
I just want to promote what helped me thanks to @crramirez: I created a totally local user "docker", made it "Administrator" and used that user to login and share now.
Maybe thats an even cleaner solution ^^
Thanks a lot
nngo's reset solution worked for me https://github.com/docker/for-win/issues/2549#issuecomment-466030418
@nea :s (@crramirez) solution worked for me as well. Created a local admin user "Docker" and used that user in the shared drive promt as ".\Docker".
Many thanks
Workaround from @andalerom also worked for me, thanks!
You should check C:\Users\<user>\AppData\Local\Docker\log.txt for errors.
In my case, I found the following:
[16:00:39.130][ApiProxy ][Info ] time="2019-03-06T16:00:39+01:00" msg="proxy << POST /v1.39/containers/dff37012ad4a61bb3234939c60fbcb10d3ebf6744268522539c3ca5a6892ed72/start (1.3915871s)\n"
[16:00:39.135][SambaShare ][Error ] Unable to mount C drive: C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: OCI runtime create failed: container_linux.go:344: starting container process caused "exec: \"/usr/bin/nsenter1\": stat /usr/bin/nsenter1: no such file or directory": unknown.
[16:00:39.135][SambaShare ][Info ] Removing share "C"
[16:00:39.188][NamedPipeClient][Info ] Received response for filesharing/mount
Obviously the container (to test the SMB mount) is falsely missing /usr/bin/nsenter1 and crashes which results in a Docker Windows GUI doing nothing.
In my case this "test"-Docker-container seemed to be in a bad state. Since I cannot access the Hyper-V Machine for further debugging, removing the Hyper-V Disk Folder as @andalerom suggested was an appropriate solution that actually worked for me.
I had the same error message in the log.
For me it worked after I simply deleted the image docker4w/nsenter-dockerd.
In my case i was trying to create share by using a user account that was not in 'docker-users' group. Either add your account to that user group or use user account that already exists in that group. User groups can be accessed by 'lusrmgr.msc'
Adding both my AzureAD account and a local account to the user group doesn't change anything for me.