mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-02-22 02:41:35 +01:00
specific MacOS Docker command to launch dashboard (#553)
This commit is contained in:
parent
ada729d3a3
commit
1a228145a6
@ -256,9 +256,13 @@ Command reference:
|
||||
# Map /dev/ttyUSB0 into container
|
||||
docker run --rm -v "${PWD}":/config --device=/dev/ttyUSB0 -it esphome/esphome ...
|
||||
|
||||
# Start dashboard on port 6052
|
||||
# Start dashboard on port 6052 (general command)
|
||||
# Warning: this command is currently not working with Docker on MacOS. (see note below)
|
||||
docker run --rm -v "${PWD}":/config --net=host -it esphome/esphome
|
||||
|
||||
# Start dashboard on port 5062 (MacOS specific command)
|
||||
docker run --rm -p 6052:6052 -e ESPHOME_DASHBOARD_USE_PING=true -v "${PWD}":/config -it esphome/esphome
|
||||
|
||||
# Setup a bash alias:
|
||||
alias esphome='docker run --rm -v "${PWD}":/config --net=host -it esphome/esphome'
|
||||
|
||||
@ -283,6 +287,10 @@ And a docker compose file looks like this:
|
||||
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
|
||||
|
||||
On MacOS the networking mode ("-net=host" option) doesn't work as expected. You have to use
|
||||
another way to launch the dashboard with a port mapping option and use alternative to mDNS
|
||||
to have the online/offline stat (see below)
|
||||
|
||||
mDNS might not work if your Home Assistant server and your ESPHome nodes are on different subnets.
|
||||
If your router supports Avahi, you are able to get mDNS working over different subnets.
|
||||
|
||||
|
@ -175,6 +175,11 @@ To start the ESPHome dashboard, simply start ESPHome with the following command
|
||||
# On Docker, host networking mode is required for online status indicators
|
||||
docker run --rm --net=host -v "${PWD}":/config -it esphome/esphome
|
||||
|
||||
# On Docker with MacOS, the host networking option doesn't work as expected. An
|
||||
# alternative is to use the following command if you are a MacOS user.
|
||||
docker run --rm -p 6052:6052 -e ESPHOME_DASHBOARD_USE_PING=true -v "${PWD}":/config -it esphome/esphome
|
||||
|
||||
|
||||
After that, you will be able to access the dashboard through ``localhost:6052``.
|
||||
|
||||
.. figure:: images/dashboard.png
|
||||
|
Loading…
Reference in New Issue
Block a user