绿联DH2600配置如何进入docker内部
前提:
已经能ssh进入绿联、已经成功运行docker容器
已进入docker home-assistant为例
- 查看当前docker运行容器
docker ps
输出:
root@UGREEN-3822:~# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0d2eb474bbc2 homeassistant/home-assistant:latest "/init" 5 days ago Up 4 days home-assistant
- 进入容器
docker exeic -it 0d2eb474bbc2 /bin/bash
输出:
root@UGREEN-3822:~# docker exec -it 0d2eb474bbc2 /bin/bash
UGREEN-3822:/config# ls
automations.yaml custom_components home-assistant.log.1 home-assistant_v2.db-shm scripts.yaml www
blueprints deps home-assistant.log.fault home-assistant_v2.db-wal secrets.yaml
configuration.yaml home-assistant.log home-assistant_v2.db scenes.yaml tts
UGREEN-3822:/config#
- 修改home-assistant配置文件
vi configuration.yaml
- 修改端口添加:
http:
server_port: 8848
- 添加github token:
hacs:
token: ghp_kXXXX