6
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Docker for Macでdocker0インターフェースが無い件

Posted at

ホストのMacからコンテナへネットワークアクセスしようとしてみたら、

> ping 172.17.0.2
PING 172.17.0.2 (172.17.0.2): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
...

となり、できない。ホスト側のifconfigでdocker0インターフェースを見ようとしたらそもそも存在しない。調べたら、MacOS固有の制限事項で、docker runする時に--publish でポートフォワードするしか解決策が無いみたい。

参照: Networking features in Docker for Mac

6
3
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
6
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?