Як налаштувати Windows Defender Firewall для спільного використання дисків в Докер?

докер prevents sharing drives and presents the Firewall detected dialog.

A firewall is blocking file Sharing between Вікна and the containers. See documentation for more info.

Для того, щоб запобігти вище, налаштувати Windows Defender Firewall, щоб порт 445 з'єднання TCP.

За замовчуванням Windows Defender Firewall блокує TCP порт 445 connections.

The following shows one way to configure the Windows Defender Firewall.


  1. Go to Windows Security Dashboard
    Windows Security Dashboard


  2. Click on Firewall & network protection
    Firewall & network protection

    Примітка: Private network is active


  3. Choose Advanced settings and then Inbound Rules
    Windows Defender Firewall with Advanced Security - Inbound Rules


  4. Find TCP IB_BLOCK and double click on it.


  5. Choose the advanced tab and uncheck private in Profiles (Private matches the active network profile).  Натисніть кнопку ОК.


  6. в докер, go to Settings -> Shared Drives, and check the drive that you would like to share.


Напишіть відгук