LoginSignup
30
34

More than 5 years have passed since last update.

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

Last updated at Posted at 2018-05-12

概要

Docker で Ruby On Rails の環境を作ろとして、
ESETのファイアーウォールの設定にはじかれたので、
ESETの設定方法をメモします。

設定方法

@tomoki さんがコメント欄に書いてくれた通り、以下のサイトを見て設定するとすぐ終わる。
https://stackoverflow.com/questions/42203488/settings-to-windows-firewall-to-allow-docker-for-windows-to-share-drive/42955491#42955491

経緯

Dockerで、「docker-compose up」ってやったら、「/app/Gemfile not found」って、エラーが出た。
無題.png

色々調べてみると、なんだか Docker の Shared Drives が、ファイアウォールの影響で、機能していないようだった。

Firewall detected
A firewall is blocking file Sharing between Windows and the containers. See documentation for more info.
無題3.png

私のファイアウォールは、ESET(セキュリティソフト)が行っていて、
そいつに、除外設定みたいなのをしないといけないようだった。

以下、でもできますが、上のサイトの方法が一番簡単です。

設定内容

設定については、以下のサイトを参考にした。
https://blog.olandese.nl/2017/05/03/solve-docker-for-windows-error-a-firewall-is-blocking-file-sharing-between-windows-and-the-containers/

私の場合は、
「セキュリティが強化されたWindows Deffender ファイアーウォール」-「受信規則」の
「DockerSmbMount」を、ESETにも適用することで解決した。
※Windowsファイアウォールについては、Dockerをインストールした際?に設定ができてた。
無題4.png
無題5.png

ESETの設定

「設定」-「ネットワーク保護」-「パーソナルファイアウォール」-「設定」-「ルール(詳細タブ)」で設定する。
設定は、以下の画像の通りで、Windows側にできてた「DockerSmbMount」の設定をコピーしたら行けた。
無題6.png

まとめ

ただ、簡単に環境を作りだけなのに、意味わからんエラーで、めちゃ時間とられました。。。

30
34
8

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
30
34