1. 创建ha配置文件目录
$ cd ~
$ mkdir ha/config
2.启动ha的docker
$docker run -d --name="home-assistant" -v /home/ha/config:/config -v /etc/localtime:/etc/localtime:ro -p 8123:8123 homeassistant/home-assistant:stable
$ cd ~
$ mkdir ha/config
$docker run -d --name="home-assistant" -v /home/ha/config:/config -v /etc/localtime:/etc/localtime:ro -p 8123:8123 homeassistant/home-assistant:stable