安装
sudo docker pull esphome/esphome
运行
docker run --rm --net=host -v "${PWD}":/config -it esphome/esphome
成功会有如下提示:
root@ubuntu:# docker run --rm --net=host -v "${PWD}":/config -it esphome/esphome
Unable to find image 'esphome/esphome:latest' locally
latest: Pulling from esphome/esphome
69692152171a: Already exists
a14e381a147f: Already exists
521dc2bbbf1d: Already exists
cec69e572aab: Already exists
519e10c0eab3: Already exists
96c9437640da: Pull complete
7543cd0b2295: Pull complete
cda4df9c0890: Pull complete
625eec930d65: Pull complete
Digest: sha256:a6a9db4adf0cb02d08e54718f31a4c38f7b106beeb448941f197ca373c749b0d
Status: Downloaded newer image for esphome/esphome:latest
INFO Starting dashboard web server on port 6052 and configuration dir /config...
后续更新到最新版本
docker pull esphome/esphome:latest