LoginSignup
0
0

More than 5 years have passed since last update.

docker for Windowsでfirewall絡みのエラーが出た時の対処

Last updated at Posted at 2019-02-03

概要

docker for WindowsでWindowsのディレクトリをコンテナ内のディレクトリとしてマウントしようとすると、以下のようなエラーが発生したので、その対処をまとめます。

A firewall is blocking file Sharing between Windows and the containers. 

エラー

原因

インストールしていたセキュリティソフトKasperskyでWindows⇔コンテナ間の通信が許可されていなかった。

対処

KasperskyでWindows⇔コンテナ間の通信を許可します。

左下の歯車ボタンをクリックして設定画面を開く。
2019-02-03 (2).png

「プロテクション」>「ファイアウォール」を選択する。
2019-02-03 (3).png

「パケットルールの設定」を選択する。
2019-02-03 (4).png

以下のようなパケットルールを追加する。
デフォルトであればWindows⇔コンテナ間の通信は以下のような内容です。
2019-02-03 (6).png

これでマウントできると思います。

感想

Windowsで開発環境構築するの大変だなあ。

参考

Windows10 で、Dockerで環境作る際の ESETのファイアーウォール設定

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0