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

后端 未结 30 1419
臣服心动
臣服心动 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:48

    Only this solution helps me:

    • Go to Hyper-V Manager -> Virtual Switch Manager -> DockerNAT -> Connection Type: change from internal to private, apply, change back to internal, apply
    • Restart MobyLinuxVM
    • Restart Docker
    • Set Docker network profile to 'Private'. Run command in PowerShell as admin
      Set-NetConnectionProfile -interfacealias "vEthernet (DockerNAT)" -NetworkCategory Private
    • Reset File and Printer Sharing for Microsoft Networks on DockerNAT connection
    • Go to Docker -> Settings -> Shared Drives and share C:

提交回复
热议问题