for-win icon indicating copy to clipboard operation
for-win copied to clipboard

Cannot Share drives Windows10

Open proncerof opened this issue 8 years ago • 37 comments

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

  1. Run docker
  2. Go to docker settings > Shared Drives
  3. Select the drive to share
  4. Click apply

proncerof avatar Mar 07 '18 12:03 proncerof

Hi @ronce96 Do you get any errors or warnings when the box is unchecked?

jasonbivins avatar Mar 07 '18 16:03 jasonbivins

@jasonbivins No, the common error of the firewall doesn't appear this time.

proncerof avatar Mar 07 '18 16:03 proncerof

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 avatar Apr 02 '18 20:04 crramirez

@crramirez Thanks! I had the same exact issue (checkbox is unchecked after apply), this workaround fixed it.

Ron-Burg avatar Jun 14 '18 07:06 Ron-Burg

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.

lucallero avatar Sep 09 '18 03:09 lucallero

+1 I am having the same issue.

brona90 avatar Nov 22 '18 07:11 brona90

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

AgainPsychoX avatar Nov 29 '18 15:11 AgainPsychoX

Same issue. Any ETA on this?

syedhassaanahmed avatar Dec 02 '18 22:12 syedhassaanahmed

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)

higkoo avatar Dec 05 '18 08:12 higkoo

My workaround was to remove C:\Users\Public\Documents\Hyper-V\Virtual Hard Disks folder...

andalerom avatar Dec 05 '18 17:12 andalerom

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:

  1. Turn off my computer
  2. Pull my MacBook out of my bag
  3. Pretend that Docker for windows doesn't exist

This is obviously not ideal. No quoted steps here have helped.

jmcgrory avatar Jan 10 '19 13:01 jmcgrory

workaround from @andalerom worked for me

vaceslav avatar Feb 12 '19 21:02 vaceslav

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

nea avatar Feb 13 '19 09:02 nea

nngo's reset solution worked for me https://github.com/docker/for-win/issues/2549#issuecomment-466030418

sprevrha avatar Feb 27 '19 00:02 sprevrha

@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

perringqvist avatar Feb 27 '19 12:02 perringqvist

Workaround from @andalerom also worked for me, thanks!

jl-cs avatar Mar 06 '19 10:03 jl-cs

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.

danielmorlock avatar Mar 06 '19 15:03 danielmorlock

I had the same error message in the log. For me it worked after I simply deleted the image docker4w/nsenter-dockerd.

cswgr avatar Mar 22 '19 10:03 cswgr

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'

naeemmuhammad avatar Apr 17 '19 10:04 naeemmuhammad

Adding both my AzureAD account and a local account to the user group doesn't change anything for me.

CamDHall avatar Jun 15 '19 01:06 CamDHall