mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-02-15 01:31:35 +01:00
Added info and link about host networking driver (#3689)
This commit is contained in:
parent
9cb5cad6d8
commit
075392ddba
@ -374,6 +374,7 @@ And a docker compose file looks like this:
|
|||||||
# if needed, add esp device(s) as in command line examples above
|
# if needed, add esp device(s) as in command line examples above
|
||||||
- /dev/ttyUSB0:/dev/ttyUSB0
|
- /dev/ttyUSB0:/dev/ttyUSB0
|
||||||
- /dev/ttyACM0:/dev/ttyACM0
|
- /dev/ttyACM0:/dev/ttyACM0
|
||||||
|
# The host networking driver only works on Linux hosts, but is available as a Beta feature, on Docker Desktop version 4.29 and later.
|
||||||
network_mode: host
|
network_mode: host
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
@ -384,9 +385,9 @@ And a docker compose file looks like this:
|
|||||||
By default ESPHome uses mDNS to show online/offline state in the dashboard view. So for that feature to work you
|
By default ESPHome uses mDNS to show online/offline state in the dashboard view. So for that feature to work you
|
||||||
need to enable host networking mode.
|
need to enable host networking mode.
|
||||||
|
|
||||||
On MacOS the networking mode ("-net=host" option) doesn't work as expected. You have to use
|
The `host networking driver <https://docs.docker.com/network/drivers/host/>`_ only works on Linux hosts, but is available as a Beta feature, on Docker Desktop version 4.29 and later.
|
||||||
another way to launch the dashboard with a port mapping option and use alternative to mDNS
|
|
||||||
to have the online/offline stat (see below)
|
If you don't want to use the host networking driver, you have to use an alternative method described below.
|
||||||
|
|
||||||
mDNS might not work if your Home Assistant server and your ESPHome nodes are on different subnets.
|
mDNS might not work if your Home Assistant server and your ESPHome nodes are on different subnets.
|
||||||
If your router supports Avahi (eg. OpenWRT or pfSense), you are able to get mDNS working over different subnets
|
If your router supports Avahi (eg. OpenWRT or pfSense), you are able to get mDNS working over different subnets
|
||||||
|
Loading…
Reference in New Issue
Block a user