Windows防火墙的设置允许Docker for Windows共享驱动器

前端之家收集整理的这篇文章主要介绍了Windows防火墙的设置允许Docker for Windows共享驱动器前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
Windows防火墙阻止我尝试允许Docker for Windows在Windows 10机器上共享C:.

Windows防火墙关闭时工作正常.当它得到

A firewall is blocking file Sharing between Windows and the
containers. See documentation for more info.

文件

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).

我试图找到如何做 – “googled出来” – 有人建议吗?

遇到这个错误时,我没有使用任何第三方防火墙.我相信这是一个Windows防火墙问题,尽管禁用Windows防火墙对我来说无效.经过多次研究,我终于找到了这个博文: Docker on windows 10 error: A firewall is blocking file Sharing between Windows and the containers. See documentation for more info.

它最终与内置的Windows防火墙无关.

The Fix

  1. Share the C:,D:,E: … drive(s) in File Explorer (Right-click Drive > Properites > Sharing). [Edit: This step might not be necessary]
  2. 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].
  3. Reinstall it and make sure it is enabled [or just recheck it].

猜你在找的Windows相关文章