LoginSignup
1
1

More than 1 year has passed since last update.

【Docker】コンテナからホストにアクセスする方法

Last updated at Posted at 2023-02-18

コンテナからホストにアクセスする方法

host.docker.internalを使用することでコンテナ内からホストマシンにアクセスできます。

host.docker.internalを使用するとホストマシンのIPアドレスを指定する必要がなくホストマシンのIPアドレスを自動的に解決することができます。

ただしhost.docker.internalはDocker Desktopの開発環境でのみ対応しています。

1
1
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
1
1