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

Can't share drive. mounting .../C on /c failed: Invalid argument #646

Closed
devnixs opened this Issue Apr 15, 2017 · 9 comments

Comments

Projects
None yet
7 participants
@devnixs

devnixs commented Apr 15, 2017

Before I start, this is not a duplicated issue. I've read all the other github issues related to that error, and tried every possible fix, and none of them worked.

My firewall is completely disabled for all networks.
If I create the share manually using

net share C=C:\ /grant:MYMACHINE\MYUSER,FULL /CACHE:None

And then try to share the driver in docker for windows, the share is deleted.

Something surprising is that I can access the share in windows explorer
But when I try with the command line, it fails :

image

But it works in explorer!
image

Of course, I tried rebooting, uninstalling and reinstalling docker many times.

I already tried
#77
#114
#125
#98
#280
#313
#530
#639
#466

Expected behavior

  • I should be able to share a drive in docker for windows

Actual behavior

  • After typing my password, the checkbox gets unchecked

Information

The error in the log is :

[09:52:23.832][SambaShare     ][Error  ] Unable to mount C drive: 10.0.75.1 (10.0.75.1:445) open
mount error(95): Not supported
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
mount: mounting //10.0.75.1/C on /c failed: Invalid argument

And the Diagnostic ID is 416D68C3-32DA-4D22-8310-B4729A32B7B8/2017-04-15_11-24-53

I'm on Windows 10 Pro, version 1607 (OS Build 14393.1066 )

Steps to reproduce the behavior

  1. Open docker for windows, shared drives tab.
  2. Check a drive
  3. Hit apply
  4. Enter your password
  5. The checkbox get unchecked!

Thanks for your help! I'm really getting out of ideas.

@grahamehorner

This comment has been minimized.

Show comment
Hide comment
@grahamehorner

grahamehorner Apr 15, 2017

grahamehorner commented Apr 15, 2017

@devnixs

This comment has been minimized.

Show comment
Hide comment
@devnixs

devnixs Apr 15, 2017

devnixs commented Apr 15, 2017

@simonferquel

This comment has been minimized.

Show comment
Hide comment
@simonferquel

simonferquel Apr 19, 2017

From the diagnostics, I see many Samba errors (with status: Request is not supported) while authenticating.
By any chance do you have any windows policy restricting the file shares authorized authentication schemes ?

simonferquel commented Apr 19, 2017

From the diagnostics, I see many Samba errors (with status: Request is not supported) while authenticating.
By any chance do you have any windows policy restricting the file shares authorized authentication schemes ?

@devnixs

This comment has been minimized.

Show comment
Hide comment
@devnixs

devnixs Apr 19, 2017

Hi @simonferquel and thanks for taking the time to look into that.
I'm not aware of any policy restricting the file shares, But I have to admit, I'm no expert.
Maybe you could guide me and tell me where to look?
Thanks!

devnixs commented Apr 19, 2017

Hi @simonferquel and thanks for taking the time to look into that.
I'm not aware of any policy restricting the file shares, But I have to admit, I'm no expert.
Maybe you could guide me and tell me where to look?
Thanks!

@devnixs

This comment has been minimized.

Show comment
Hide comment
@devnixs

devnixs Apr 24, 2017

It's a shame but I had to format my computer. Couldn't find another way and I needed it to work.
Closing that issue then.

devnixs commented Apr 24, 2017

It's a shame but I had to format my computer. Couldn't find another way and I needed it to work.
Closing that issue then.

@devnixs devnixs closed this Apr 24, 2017

@waelkdouh

This comment has been minimized.

Show comment
Hide comment
@waelkdouh

waelkdouh May 14, 2017

I am facing the same issue with the latest version of docker on windows 10

waelkdouh commented May 14, 2017

I am facing the same issue with the latest version of docker on windows 10

@quangakgl

This comment has been minimized.

Show comment
Hide comment
@quangakgl

quangakgl commented Jul 26, 2017

me too

@prajapatin

This comment has been minimized.

Show comment
Hide comment
@prajapatin

prajapatin Oct 25, 2017

After lot of struggle, I was able to get rid of this error. Please follow below steps if none of the resolution works mentioned on this thread.

  1. Navigate to C:\Users\Public\Documents\Hyper-V (it will ask administrative permission)
  2. Click on folder "Virtual hard disks"
  3. Here you will find "MobyLinuxVM.vhdx", just right click on it and goto context menu "Share with -> Advanced sharing settings..."
  4. There you just go ahead and enable sharing under Public folder sharing blade and that's it. Once you have saved this settings, go ahead and enable sharing drive through docker command or through docker UI (settings)

prajapatin commented Oct 25, 2017

After lot of struggle, I was able to get rid of this error. Please follow below steps if none of the resolution works mentioned on this thread.

  1. Navigate to C:\Users\Public\Documents\Hyper-V (it will ask administrative permission)
  2. Click on folder "Virtual hard disks"
  3. Here you will find "MobyLinuxVM.vhdx", just right click on it and goto context menu "Share with -> Advanced sharing settings..."
  4. There you just go ahead and enable sharing under Public folder sharing blade and that's it. Once you have saved this settings, go ahead and enable sharing drive through docker command or through docker UI (settings)
@strarsis

This comment has been minimized.

Show comment
Hide comment
@strarsis

strarsis Feb 3, 2018

I also have the same issue on Docker Toolbox (VirtualBox default hypervisor).
Edit: dmesg command tails the kernel log which should indicate what happened wrong with CIFS mount,
in my case the user option was missing and vers=2.1 not supported.

strarsis commented Feb 3, 2018

I also have the same issue on Docker Toolbox (VirtualBox default hypervisor).
Edit: dmesg command tails the kernel log which should indicate what happened wrong with CIFS mount,
in my case the user option was missing and vers=2.1 not supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment