-
Notifications
You must be signed in to change notification settings - Fork 291
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
Error: A firewall is blocking file sharing between Windows and the containers #2677
Comments
I am also having exact same issue. Tried lots of thing, nothing works. |
I have also same issue firewall blocking, searching a lot but found nothing, I am using Docker version 18.06.1-ce, build e68fc7a at Window 10 pro. |
Update: Our IT support created a new group policy for F-Secure that allows me to turn firewall off. After disabling firewall sharing drives on Docker works alright but firewall needs to be disabled whenever trying to mount anything to a container. |
I have windows 10 1803, Firewall is off (both Windows Defender & McAfee Endpoint Security) but still cannot share the driver. I tried to uninstall File and Print sharing service on the Hyper-V virtual network card as suggestion in document but cannot do it. |
|
I have firewall completely off from beginning already :(. |
I'm having this issue because the VM is trying to use SMB v1 to connect to the C: Share but our enterprise has disabled SMB v1 due to age and security issues. You can verify if this is the issue by checking the following registry key: HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters and seeing if the key SMB1 is set to 0 or not. Whilst enabling SMB v1 can resolve the issue its been disabled by default in Windows 10 for good reason and a more permanent fix is needed. |
This key is not available on my machine, I tried to add and set it value to 1, restart computer and tried share again but still no luck |
Do you have the SMB components installed, Windows 10 doesn't have these installed by default? You can check with this powershell: If you choose to install SMB v1 you could use this command (however I don't recommend it): In my environment I have the feature installed however group policy disables SMB v1 which prevents the file sharing from working. |
Interesting, I followed these instructions and it worked for me #313 (comment) |
Sharing is possible with local admin rights but after applying changes it won't persist and volume remains unshared. |
SMB1 seems to be already enabled on my machine. No luck with this workaround. |
Confirming #313 (comment) works for me after a reboot and with SMB v1 disabled. |
Also tried following from #313, no luck. Navigate to C:\Users\Public\Documents\Hyper-V (it will ask administrative permission) Upload diagnostic: 1F80BF17-0910-406C-87B0-0B4571194B20/20181110001015 |
In our case solution was to create a policy for F-Secure that allows filesharing from networks 192.168.65.0/24, 10.0.75.0/24 and 127.0.0.1 I'll have to dig into if those IP's are out-the-box or specific to my current network configuration. In other words, we'll test the same policy from an another developer's workstation. |
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an 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. |
I am having the same issues. I have tried all the workaround with no luck including turning off my firewall /remove-lifecycle stale |
facing the same issue... tried all the suggested solutions above, none of them worked. |
A fellow worker clued me in on how to fix it. Create a local account (note that this isn't a domain account with local administrators access) with membership in the groups 'Administrators' (the local one) and 'docker-users'. Then when Docker prompts for credentials enter the credentials of your local administrator account. I use Norton Smart Firewall and to get to the point where it would prompt me for credentials I still had to do the firewall exception thing. |
Same here. |
We had similar issue and this blocking us from exploring SQL Server on containers for dev machines. Our devs runs on windows with Docker CE. The issue seems to have been existing for years with no clear resolution. |
I've tried all the solutions proposed and still no joy. Docker works fine on my home computer, but it won't work on my work laptop (which has the firewall turned off). I have admin rights. I've uninstalled and re-installed a couple times just to be sure. I guess I just can't use it on this machine. Or I just copy all the files into the docker image and don't mount a local drive. |
Not working on my home PC. Interesting noticed: when I trying to share my C drive manualy (in explorer), after that, I see it in \\10.0.75.1\c , but when I try to check C drive in docker gui for sharing, it shows me "A firewall is blocking file sharing between Windows and the containers", and disable my manually created share. I've tried all solutions proposed here, still nothing. |
For Cisco Any-Connect(vpn) client try this solution |
Open powershell as admin and run this,
|
I just tried that solution and it didn't change the firewall message. I tried messing with the .docker folder permission per #3385 and that didn't work either. The search continues... |
@coltenkrauter solution worked for me. |
I tried all workaround, any new clues plz? |
Same issue, I've already tests all sugestions. I can telnet my SMB service on 445, but I can't change the network caterory (NLM Policies group):
So, I found how I can mount manually a CIFS volume V3 version like:
And use it, ex. in docker-compose:
But is very painful... |
This is fixed with the new filesharing implementation in 2.2.0.3, so closing this ticket. |
I've update my windows docker client.... And it's work !!!!! |
Closed issues are locked after 30 days of inactivity. 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. |
Expected behavior
Share drives on Windows 10 should succeed
Actual behavior
Error: A firewall is blocking file sharing between Windows and the containers
Information
I've tried the following workarounds / steps but the problem persists:
https://success.docker.com/article/error-a-firewall-is-blocking-file-sharing-between-windows-and-the-containers
http://stackoverflow.com/questions/42203488/settings-to-windows-firewall-to-allow-docker-for-windows-to-share-drive/43904051#43904051
http://blog.medhat.ca/2017/01/docker-on-windows-10-error-firewall-is.html
http://www.kajabity.com/2017/08/unblock-docker-for-windows-firewall-issues-with-host-volumes/
Seems to be ongoing issue, here's a few more duplicate issues
Error: A firewall is blocking file sharing between Windows and the containers #2512
Upgraded and Can't share drive with docker I get: Error: A firewall is blocking file Sharing between Windows and the containers #2527
Windows 10: Docker for Windows: unable to share drive #2549
Windows 10: Docker for Windows: unable to share drive #690
Cannot Share drives Windows10 #1801
Unable to share drives #803
Windows 10 - Firewall Share C:\ Drive Blocking Problem - Many Proposed Solution Attempted #2628
Drive sharing seems to be blocked by a firewall #2629
New install of Windows 10 and Docker, unable to share drive false firewall error #2369
Error: A firewall is blocking file Sharing between Windows and the containers #355
firewall is blocking file sharing between windows and the containers #2159
Unable to share drive, complains firewall is blocking #738
Sharing drive fails with "Firewall detected" dialog box #345
Unable to share C: Drive [firewall] #466
Share Drive #2198
Windows 10 Enterprise Version 1709 build 16299.665
Version 2.0.0.0-beta1-win75 (19925)
Channel: edge
Steps to reproduce the behavior
The text was updated successfully, but these errors were encountered: