Unable to install the ESPHome Docker panel

Hello. I can’t install the ESPHome dashboard in the play with docker service. I enter the command from the documentation docker run --rm --net-host -v "${PWD) ":/config -it ghcr.io/esphome/esphome and I get the error Unable to find image 'ghcr.io/esphome/esphome :latest' locally

I think I’m using the wrong link in the command, but I don’t know which one to use

I’m not sure why the “–rm” flag is in there. I can’t think of a reason for it but I’m far from an expert.

However here is the docker command I use to install ESPHome for use in my HA Container install:

sudo docker run -d --name="esphome" --restart=unless-stopped -p 6052:6052 -p 6123:6123 -e ESPHOME_DASHBOARD_USE_PING=true -v /home/finity/docker/esphome:/config esphome/esphome /config dashboard

Just change the config volume binding to where you want to save that data. IOW, change “/home/finity/docker/esphome” to where you want to save your config files for ESPHome.

1 Like

Hi.
I’m using @finity command which looks good, but having an issue with it.
the error from the logs:

Traceback (most recent call last):
  File "/usr/local/bin/esphome", line 33, in <module>
    sys.exit(load_entry_point('esphome', 'console_scripts', 'esphome')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/bin/esphome", line 25, in importlib_load_entry_point
    return next(matches).load()
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 202, in load
    module = import_module(match.group('module'))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/esphome/esphome/__main__.py", line 4, in <module>
    import logging
  File "/usr/lib/python3.11/logging/__init__.py", line 58, in <module>
    _startTime = time.time()
                 ^^^^^^^^^^^
PermissionError: [Errno 1] Operation not permitted

Will really appreciate any thoughts on that

Thanks

I believe that tells you the problem. But…I don’t know why or how to fix it. You are likely trying to do something your user doesn’t have the permission to do.

Are you using HA Container or a supervised (HAOS or HA Supervised) install?