绿联DH2600配置如何进入docker内部

前提:
已经能ssh进入绿联、已经成功运行docker容器

已进入docker home-assistant为例

  1. 查看当前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
  1. 进入容器
    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#
  1. 修改home-assistant配置文件
    vi configuration.yaml
  2. 修改端口添加:
http:
  server_port: 8848
  1. 添加github token:
hacs:
 token: ghp_kXXXX
posted @ 2024-01-24 14:50  Tarzen  阅读(169)  评论(0编辑  收藏  举报