Installer Home Assistant Supervised for a generic Linux system
Find a file
Luciano Colosio 7ab3b2c303
Warn the user about NOT deleting containers
As the `supervisor` does not support creating the homeassistant container if accidentally deleted, let's warn the users before it's too late and perhaps give a bare minimum of possible ways to recover.
2019-05-21 15:45:08 +01:00
files Fix lint 2019-04-24 13:57:57 +02:00
azure-pipelines.yml Fix lint 2019-04-24 13:54:23 +02:00
hassio_install.sh Fix broken links (#2) 2019-04-24 17:57:41 +02:00
LICENSE [skip ci] add licences 2019-04-25 15:23:36 +02:00
README.md Warn the user about NOT deleting containers 2019-05-21 15:45:08 +01:00

Build Status

Install Hass.io

Beside the usage of the images it's also possible to run Hass.io on a generic system without flashing an image.

Requirements

docker-ce
bash
jq
curl
avahi-daemon
dbus

Optional

apparmor-utils
network-manager

Run

Run as root (sudo su):

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

Command line arguments

argument default description
-m | --machine On a special platform they need set a machine type use
-d | --data-share /usr/share/hassio data folder for hass.io installation

you can set these parameters by appending -- <parameter> <value> like:

curl -sL https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh | bash -s -- -m MY_MACHINE

Supported Machine types

  • intel-nuc
  • odroid-c2
  • odroid-xu
  • orangepi-prime
  • qemuarm
  • qemuarm-64
  • qemux86
  • qemux86-64
  • raspberrypi
  • raspberrypi2
  • raspberrypi3
  • raspberrypi3-64
  • tinker

!!!WARNING!!! DO NOT DELETE CREATED CONTAINERS

This installer will create the base homeassistant container for you, but if you delete if (docker rm or docker prune) the supervisor will not be able to re-create it for you. If you wish to still safelly use docker containers prune you might want to add the --filter flag to your command. Example:

$ docker container prune --filter label!=homeassistant

or, for a greater peace of mind, you can add the following config to your ~/.docker/config.json:

{
  "pruneFilters": ["label!=homeassistant", "label!=hassio_supervisor", "label!=addon*"]
}

Ouch, I deleted it, and now what?

If you accidentally deleted the homeassistant container, and now it's not coming back, you will need to run this installer again. If that didn't work, you will need to manually reset your docker environment and run the installer again:

  • stop docker deamon
  • rm -fr /var/lib/docker/*
  • start docker deamon
  • run installer again