Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

armbian安装过homeassitant一次后,docker容器中,删除homeassitant相关容器和镜像,包括网络。等1-2小时,又自动下载安装。就像病毒一样,根本删不掉。 #2711

Open
nanosunny opened this issue Dec 24, 2024 · 2 comments

Comments

@nanosunny
Copy link

型号M302A
soc:s905L3b

系统:Armbian 23.08.0-trunk Jammy with Linux 5.15.133-ophub

使用armbian-software安装1次HA后,就一直删不干净了。。
一会儿又会自动下载安装上。。。

@ophub
Copy link
Owner

ophub commented Dec 24, 2024

# For homeassistant
software_108() {
# Set basic information
container_name="homeassistant"
image_name="homeassistant/home-assistant:latest"
install_path="${docker_path}/${container_name}"
case "${software_manage}" in
install)
echo -e "${STEPS} Start installing the docker image: [ ${container_name} ]..."
# Instructions: https://hub.docker.com/r/homeassistant/home-assistant
docker run -d --name=${container_name} \
--privileged \
--network=host \
-e PUID=${docker_puid} \
-e PGID=${docker_pgid} \
-e TZ=${docker_tz} \
-p 8123:8123 \
-v ${install_path}/config:/config \
-v ${install_path}/media:/media \
-v /run/dbus:/run/dbus:ro \
--restart unless-stopped \
${image_name}
sync && sleep 3
echo -e "${NOTE} The ${container_name} app [ Home Assistant ]"
echo -e "${NOTE} The ${container_name} address [ http://${my_address}:8123 ]"
echo -e "${SUCCESS} ${container_name} installed successfully."
exit 0
;;
update) docker_update ;;
remove) docker_remove ;;
*) error_msg "Invalid input parameter: [ ${@} ]" ;;
esac
}

你看看安装docker版ha有什么问题。这是ha官方的docker仓库。

你卸载也使用armbian-software,选择相同id,选择r卸载。我还没听过卸载了docker镜像后还会自己再安装上的事。

@nanosunny
Copy link
Author

nanosunny commented Dec 24, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants