克隆镜像
下载 hassio-supervisor, homeassistant 镜像
打开网址下面两个网址,获取最新版本镜像,使用docker pull拉取镜像
https://github.com/home-assistant/supervisor/pkgs/container/aarch64-hassio-supervisor
https://github.com/home-assistant/core/pkgs/container/aarch64-homeassistant
下载其他依赖镜像
打开网址 https://version.home-assistant.io/stable.json
"cli": "2022.11.0",
"dns": "2022.04.1",
"audio": "2023.04.1",
"multicast": "2022.02.0",
"observer": "2021.10.0",
"image": {
"core": "homeassistant/{machine}-homeassistant",
"supervisor": "homeassistant/{arch}-hassio-supervisor",
"cli": "homeassistant/{arch}-hassio-cli",
"audio": "homeassistant/{arch}-hassio-audio",
"dns": "homeassistant/{arch}-hassio-dns",
"observer": "homeassistant/{arch}-hassio-observer",
"multicast": "homeassistant/{arch}-hassio-multicast"
},
根据网址中这段信息,分别拉取对应的 cli
, dns
, audio
, multicast
, observer
镜像
启动容器
docker run -d --name hassio_supervisor --privileged \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /var/run/dbus:/var/run/dbus \
-v /data/apps/hassio:/data \
-e SUPERVISOR_SHARE=/data/apps/hassio \
-e SUPERVISOR_NAME=hassio_supervisor \
-e HOMEASSISTANT_REPOSITORY=homeassistant/aarch64-homeassistant \
ghcr.io/home-assistant/aarch64-hassio-supervisor:2023.05.dev0901 # <--- 这里需要替换tag
启动成功时对应容器信息
$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
f7dfa720ffeb ghcr.io/home-assistant/aarch64-homeassistant:2023.6.0.dev20230511 "/init" 5 hours ago Up 18 minutes homeassistant
0a37d5197315 ghcr.io/home-assistant/aarch64-hassio-multicast:2022.02.0 "/init" 5 hours ago Up 5 hours hassio_multicast
2420a2d63391 ghcr.io/home-assistant/aarch64-hassio-observer:2021.10.0 "/init" 5 hours ago Up 5 hours 0.0.0.0:4357->80/tcp, :::4357->80/tcp hassio_observer
b91a2c84c7ad ghcr.io/home-assistant/aarch64-hassio-audio:2023.04.1 "/init" 5 hours ago Up 5 hours hassio_audio
910e05db573b ghcr.io/home-assistant/aarch64-hassio-dns:2022.04.1 "/init" 5 hours ago Up 5 hours hassio_dns
6d5db0fb7f2f ghcr.io/home-assistant/aarch64-hassio-cli:2023.01.0 "/init" 5 hours ago Up 5 hours hassio_cli
743064e8780d ghcr.io/home-assistant/aarch64-hassio-supervisor:2023.05.dev0901 "/init" 5 hours ago Up 18 minutes hassio_supervisor
标签:hassio,supervisor,aarch64,assistant,hours,docker,homeassistant
From: https://www.cnblogs.com/gopher-zero/p/17396055.html