meta data for this page
Differences
This shows you the differences between two versions of the page.
linux:docker:host_access [2023/07/14 15:46] niziak created |
linux:docker:host_access [2023/07/14 15:57] (current) niziak |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Host access from container ====== | ====== Host access from container ====== | ||
+ | |||
+ | By default it is possible to access host services on host external interfaces (not loopback). | ||
+ | Host is available under IP address of Docker network, so dynamic mapping is needed (address can change). | ||
===== /etc/hosts ===== | ===== /etc/hosts ===== | ||
Line 22: | Line 25: | ||
NOTE: Supported in Docker version 20.10.0 | NOTE: Supported in Docker version 20.10.0 | ||
+ | |||
+ | ===== loopback access ===== | ||
+ | |||
+ | |||
+ | |||
+ | ===== host network mode ===== | ||
+ | |||
+ | Using host network mode exposes host network stack do container! | ||