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

Error: A firewall is blocking file Sharing between Windows and the containers

Open medhatelmasry opened this issue 9 years ago • 98 comments

Expected behavior

I am using Docker for windows 10 with a Linux container. I am unable to share a drive. I get a firewall error when I do so similar to case https://github.com/docker/for-win/issues/345. This was working OK until I reset my credentials and it stopped working.

Actual behavior

When I try to share any drive I get error: A firewall is blocking file Sharing between Windows and the containers. See documentation for more info.

Information

Diagnostic ID is 1ED2444F-86D2-400A-A2AC-165C6FA6599A/2016-12-24_21-28-25

Steps to reproduce the behavior

  1. Right-click on the docker icon in the Windows 10 tray and select Settings
  2. Click on Shared Drives tab
  3. Enable C, D, and E drives then click on Apply button
  4. Following error is displayed: A firewall is blocking file Sharing between Windows and the containers. See documentation for more info.

medhatelmasry avatar Dec 25 '16 05:12 medhatelmasry

Do you have any 3rd party security software(example, f-secure) installed on your system? If so, you need to open firewall with security software

sugun999 avatar Dec 28 '16 14:12 sugun999

I got this issue and it was coming from my cisco vpn. Once I disabled the VPN I could share just fine but now I don't have access to the databases I need....

johnrb2 avatar Dec 28 '16 20:12 johnrb2

The only firewall on my computer is the generic Windows Firewall for Windows 10. I see only one inbound rule in allowing port 445 from local address 10.0.75.1 to remote address 10.0.75.2.

I still get the same error when I disable windows firewall. I am not sure what else to do.

On Wed, Dec 28, 2016 at 12:11 PM, John Bench [email protected] wrote:

I got this issue and it was coming from my cisco vpn. Once I disabled the VPN I could share just fine but now I don't have access to the databases I need....

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/docker/for-win/issues/355#issuecomment-269533695, or mute the thread https://github.com/notifications/unsubscribe-auth/ABvKQkNtffSDHwL-GQYrn8Ttw8CAAyQLks5rMsKKgaJpZM4LVWKk .

medhatelmasry avatar Dec 29 '16 00:12 medhatelmasry

@simonferquel do you have time to look at @medhatelmasry dump?

friism avatar Jan 04 '17 20:01 friism

@medhatelmasry I see that you are using an insider preview of Windows. Unfortunately in latest build there seem to have a bug with Samba sharing preventing drive sharing with the linux VM to work.

We don't have any workaround for now (except reverting to Windows 14393)

simonferquel avatar Jan 05 '17 13:01 simonferquel

Simon,

Thanks for finding out the root of the problem. I will need to wait until this is fixed with subsequent windows insider releases.

Medhat

On Jan 5, 2017 5:00 AM, "Simon Ferquel" [email protected] wrote:

@medhatelmasry https://github.com/medhatelmasry I see that you are using an insider preview of Windows. Unfortunately in latest build there seem to have a bug with Samba sharing preventing drive sharing with the linux VM to work.

We don't have any workaround for now (except reverting to Windows 14393)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/docker/for-win/issues/355#issuecomment-270638581, or mute the thread https://github.com/notifications/unsubscribe-auth/ABvKQrWhBXuJHpR_XVfmBNjADaa-uqM0ks5rPOlggaJpZM4LVWKk .

medhatelmasry avatar Jan 05 '17 15:01 medhatelmasry

@simonferquel, I don't think there is a bug in Windows. It used to work for me (and still works on another PC with the most recent insider release), but then I had to reset the settings of Docker, after that it stopped working.

denisvmedia avatar Jan 11 '17 06:01 denisvmedia

@denisvmedia there was a bug before 15002 with remote access in general (not only Samba File sharing, but also with RDP). I don't know if it did hit everyone though and I suppose Microsoft fixed that in 15002.

simonferquel avatar Jan 11 '17 09:01 simonferquel

@simonferquel unfortunately, I don't know, but what really surprises me that this stopped working only after I did the reset in Docker. So even if there is a bug in Windows, there must be a workaround - otherwise how could it work before? (and still works on another PC) I'd be happy to find it... If I can help anyhow, I'm open for that, because currently my work is completely stopped due to this issue :(

Update: As of RDP - it works for me right now - I'm writing this from an external network on my Desktop through RDP.

denisvmedia avatar Jan 11 '17 09:01 denisvmedia

I solved it! Now it works again. I found a comment of @gorbunovav in #114, it worked for me:

Try to share the drive manually in Windows and check, that you can access

\10.0.75.1[Drive Letter]

If it doesn't work - check, that file sharing is enabled for the docker interface location (Public network by default) and try to remove, then add back 'File and Printer Sharing for MS Networks' in 'vEthernet (DockerNAT)' network adapter's properties.

(I've also moved interface to the 'Private network' segment:

Set-NetConnectionProfile -InterfaceAlias "vEthernet (DockerNAT)" -NetworkCategory Private

in the PowerShell)

denisvmedia avatar Jan 11 '17 14:01 denisvmedia

I see this issue in Win10 Insider build 15007. Just submitted feedback to MS about this since it had been fixed in a prev. (way older, might have been 14393) Insider build. Currently updating to 15014.

cmurczek avatar Jan 20 '17 13:01 cmurczek

Volume mapping is working again in Win10 Insider build 15014.

cmurczek avatar Jan 20 '17 14:01 cmurczek

@johnrb2 - did you ever figure this out with Cisco VPN? My team are all using a docker container for development and it's made WFH really annoying. Thoughts? Thanks, Phillip

phillipsharring avatar Jan 26 '17 14:01 phillipsharring

Markdown seems to have eaten the solution @denisvmedia posted. In a file explorer, go to: \\10.0.75.1\C

phillipsharring avatar Jan 26 '17 14:01 phillipsharring

@philsown yeah I just had to change the address in network settings to 192.168.x.x since the VPN was already using the 10.0 ones.

johnrb2 avatar Jan 26 '17 14:01 johnrb2

@philsown there is another thread regarding the Cisco VPN that my solution didn't work for @sugun999 he or she could use some help.

johnrb2 avatar Jan 26 '17 14:01 johnrb2

On issue #360

johnrb2 avatar Jan 26 '17 14:01 johnrb2

I had same issue and I just solved it. My internet security software was blocking file and printer sharing. If you do too, Just right click on the drive that you want to share with docker in file explorer and click on Sharing tap. Than click on advanced sharing. On that popup check the "Share this folder" checkbox and click ok. If your security software warned you just click on it and enable file sharing on it and click ok. Now if you go to docker settings and share the drive, it will work.

absalan avatar Feb 18 '17 07:02 absalan

@absalan When I share my C: drive manually thorugh the advanced sharing settings and then try to activate in the docker settings, I get the notification that firewall is blocking, which it is not (#466) and after that the C: drive is not shared anymore.

sthuber90 avatar Feb 18 '17 11:02 sthuber90

@sthuber90 that's interesting. If you don't enable sharing in the Advanced Settings does it work? Also, how do you enable it? There are several options in the menu. Could you maybe share a screenshot? thanks

rn avatar Feb 18 '17 11:02 rn