Error: A firewall is blocking file Sharing between Windows and the containers
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
- Right-click on the docker icon in the Windows 10 tray and select Settings
- Click on Shared Drives tab
- Enable C, D, and E drives then click on Apply button
- Following error is displayed: A firewall is blocking file Sharing between Windows and the containers. See documentation for more info.
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
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....
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 .
@simonferquel do you have time to look at @medhatelmasry dump?
@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)
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 .
@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 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 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.
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)
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.
Volume mapping is working again in Win10 Insider build 15014.
@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
Markdown seems to have eaten the solution @denisvmedia posted. In a file explorer, go to: \\10.0.75.1\C
@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.
@philsown there is another thread regarding the Cisco VPN that my solution didn't work for @sugun999 he or she could use some help.
On issue #360
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 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 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