DOCKER上安裝HASSIO


更新源列表命令

sudo apt-get update
sudo apt-get upgrade –y

 

This is the list of packages you need to have available on your system that will run Hass.io if you are using Debian/Ubuntu:

apparmor-utils apt-transport-https avahi-daemon ca-certificates curl dbus jq network-manager socat software-properties-common

其中部分系統已經安裝過了。

安裝支持庫文件

sudo apt-get install bash socat jq

 

拉取Homeassistant鏡像

sudo docker pull homeassistant/qemux86-64-homeassistant:latest

 

拉取Supervisor鏡像

sudo docker pull homeassistant/amd64-hassio-supervisor:latest

 

安裝Hass.io
修改root管理密碼

sudo passwd


切換用戶到root

su root


到root根目錄

cd


運行下面的命令完成安裝

curl -sL https://raw.githubusercontent.com/home-assistant/hassio-build/master/install/hassio_install | bash -s

 

root@OptiPlex:~# curl -sL https://raw.githubusercontent.com/home-assistant/hassio-build/master/install/hassio_install | bash -s
[Info] Install supervisor docker
[Info] Install supervisor startup scripts
Created symlink /etc/systemd/system/multi-user.target.wants/hassio-supervisor.service → /etc/systemd/system/hassio-supervisor.service.
[Info] Install AppArmor scripts
Created symlink /etc/systemd/system/multi-user.target.wants/hassio-apparmor.service → /etc/systemd/system/hassio-apparmor.service.
[Info] Run Hass.io
root@OptiPlex:~#

 

相關帖子:https://bbs.hassbian.com/thread-4520-1-1.html

Portainer


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM