Windows防火墙阻止我尝试允许Docker for Windows在Windows 10机器上共享C:.
Windows防火墙关闭时工作正常.当它得到@H_404_2@
A firewall is blocking file Sharing between Windows and the
containers. See documentation for more info.@H_404_2@
You do not need to open port 445 on any other network. By default,
allow connections to 10.0.75.1 port 445 (the Windows host) from
10.0.75.2 (the virtual machine).@H_404_2@
我试图找到如何做 – “googled出来” – 有人建议吗?@H_404_2@
遇到这个错误时,我没有使用任何第三方防火墙.我相信这是一个Windows防火墙问题,尽管禁用Windows防火墙对我来说无效.经过多次研究,我终于找到了这个博文:
Docker on windows 10 error: A firewall is blocking file Sharing between Windows and the containers. See documentation for more info.
它最终与内置的Windows防火墙无关.@H_404_2@
The Fix@H_404_2@
- Share the C:,D:,E: … drive(s) in File Explorer (Right-click Drive > Properites > Sharing). [Edit: This step might not be necessary]
- Uninstall File and Printer Sharing for Microsoft Networks from the vEthernet (DockerNAT) network adapter (you can find the connection in the Windows Network and Sharing Center) [or just uncheck it].
- Reinstall it and make sure it is enabled [or just recheck it].