Settings to Windows Firewall to allow Docker for Windows to share drive

后端 未结 30 1411
臣服心动
臣服心动 2020-12-07 07:11

Windows Firewall is blocking my attempt to allows Docker for Windows to share C: on windows 10 machine.

Works fine when Windows Firewall off. When its on I get

相关标签:
30条回答
  • 2020-12-07 07:55

    Seem like many having this issue when running Cisco AnyConnect. I got the same problem and here is how I solved:

    The cause: The subnet being used by Docker is in the list of Secured Routes managed by Cisco AnyConnect (I believe this list is managed by your VPN's admin).

    The solution: Change the subnet used by Docker to not overlap with the list being managed by AnyConnect.

    For example, in my case, I changed from 10.0.75.0 (which was overlapped with 10.0.0.0/8) to 172.31.0.0/28.

    0 讨论(0)
  • 2020-12-07 07:55

    I had the same problem and tried all the fixes - and it turned out that more than one was necessary:

    • Add a firewall rule (Norton Security for me)
    • Make the network private
    • Share the drive

    I've written a full explanation at http://kajabity.com/2017/08/unblock-docker-for-windows-firewall-issues-with-host-volumes/

    0 讨论(0)
  • 2020-12-07 07:57

    I had the same problem with firewall not allowing me to share my C drive. I tried all listed above solutions and nothing worked for me. Then I uninstalled docker completely from my machine Control Panel\Programs\Programs and Features -> select Docker for Windows -> Uninstall
    Then go to docker website and click Get Docker for Windows (Stable)
    After that I was able to share drive C

    0 讨论(0)
  • 2020-12-07 07:58

    I found it quite easy. Just go to you network connections. You can go Control Panel/Network and Sharing. You will find various connections. Search for Docker connection. Select which ever is default. After selecting network, go to Properties. In the properties section enable the option Hyper-V Extensible Virtual Switch. This will help virtual container to use network card.

    0 讨论(0)
  • 2020-12-07 07:59

    25 Jan 2020

    It seems, it is an issue in the old versions, I installed the last version :

    Docker version 19.03.5, build 633a0ea
    

    and it worked for me without any configuration.

    0 讨论(0)
  • 2020-12-07 08:01

    For Windows 10 machines on domain networks, when creating the Hyper-V virtual Ethernet adapter, it gets categorized as a public network. You have to change it to a private network to allow the more relaxed Windows Firewall rules, and therefore allow file sharing.

    Run the following command in PowerShell:

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

    Change the name in quotes if your machine's virtual Hyper-V network connection is called something else.

    0 讨论(0)
提交回复
热议问题