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

Docker deletes Window's SMB share and blames firewall for no connection

Open laytoneverson opened this issue 9 years ago • 7 comments

Expected behavior

I am able to start docker with a shared local drive. Under "Shared Drives" when I click the check next to the "C" and press "Apply" I enter my password, the checkbox remains green, and I am able to build my containers.

Actual behavior

I enter my password, the check box becomes empty and the drive is not shared, and he windows share is removed as well. I am alerted with a message telling me the firewall blocked the connection.

My firewall is configured correctly and this problem continues to happen with the firewall disabled completely.

Information

  • Diagnostic ID: C1150827-0FCC-4C96-8AB9-ACDFB51E1A1D/2017-04-13_09-16-07
  • log.txt
  • : image

Steps to reproduce the behavior

I have determined that it is a SMB authentication issue:

  1. Browse to drive C in explorer.
  2. Right click drive C and select properties -> Sharing.
  3. Remove everyone and add my user with all full privileges.
  4. Browse network and notices that my drive is shared.
  5. Switch to Docker and attempt to mark drive C shared.
  6. Enter password when prompted by dialog.
  7. I authenticate successfully.
  8. The green checkbox becomes empty.
  9. My C drive is no longer shared in explorer.

laytoneverson avatar Apr 13 '17 15:04 laytoneverson

Similar to #466

laytoneverson avatar Apr 13 '17 15:04 laytoneverson

I was having similar issues and had almost given up trying to resolve, until i found this:

https://github.com/docker/for-win/issues/313

Not sure if it will help anyone here but following totomakers instructions at the bottom solved my issues.

ghost avatar May 15 '17 23:05 ghost

I have the same issue as this issue is reporting. I've uploaded diagnotics with id 5DF94002-2A09-4318-A1BB-89B29F98B3A5/2017-05-16_07-30-40.

My firewall is opened as follows (rule created by Docker installation):

C:\Users\yooak> netsh advfirewall firewall show rule name=DockerSmbMount

Rule Name:                            DockerSmbMount
----------------------------------------------------------------------
Enabled:                              Yes
Direction:                            In
Profiles:                             Domain,Private,Public
Grouping:
LocalIP:                              10.0.75.1/32
RemoteIP:                             10.0.75.2/32
Protocol:                             TCP
LocalPort:                            445
RemotePort:                           Any
Edge traversal:                       No
Action:                               Allow
Ok.

I've just read issue #313 and tried. But that did not help me. So I am not able to use Shared Drives in Windows 10 with Docker at the moment.

One thing to note; I have enabled developer mode in Windows 10. And I have also installed the "Bash on Ubuntu on Windows" subsystem. Could this cause conflicts?

yooakim avatar May 16 '17 05:05 yooakim

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

docker-robott avatar Mar 23 '18 09:03 docker-robott

Thanks @docker-desktop-robot! I actually needed help on this issue tho.

mburnett8 avatar Jul 18 '19 22:07 mburnett8

/remove-lifecycle stale

mburnett8 avatar Jul 18 '19 22:07 mburnett8

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-robott avatar Jun 21 '20 03:06 docker-robott