1. Cập nhật và cài các gói cho Docker:
sudo apt-get update && sudo apt-get upgrade -y
#cài gói cho docker
sudo apt-get install jq wget curl avahi-daemon udisks2 libglib2.0-bin network-manager dbus apparmor -y
sudo reboot
2. Cài đặt Docker:
#Docker installation script:
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
#Thêm người dùng vào nhóm Docker
sudo usermod -aG docker username
#Check Docker
docker --version
3. Install Agent for Home Assistant OS:
#Системный агент
#(Важно не ошибиться с архитектурой. Можно проверить вополнив uname -a и по итогу установки агента: sudo apt search os-agent)
# Версии под все платформы доступны тут: https://github.com/home-assistant/os-agent/releases/latest
wget https://github.com/home-assistant/os-agent/releases/download/1.2.2/os-agent_1.2.2_linux_aarch64.deb
sudo dpkg -i os-agent_1.2.2_linux_aarch64.deb
4. Cài đặt Home Assistant:
#Official Home Assistant Supervised installer
wget https://github.com/home-assistant/supervised-installer/releases/latest/download/homeassistant-supervised.deb
sudo dpkg -i homeassistant-supervised.deb
#http://YourIP:8123/
5. Cài đặt Portainer:
docker pull portainer/portainer-ce
docker volume create portainer_data
docker run -d -p 9000:9000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce
#http://YourIP:9000/