Having Home Assistant running on Docker Hypervisor adds a layer of complexity to the installation. The install creates two separate docker containers: hassio_supervisor and homeassistant. They need to be managed through docker. In addition, there are three services created: hassio-supevisor, hassio-apparmor, and docker. This post contains useful commands for controlling the Home Assistant with Docker.
Docker command:
- List running containers:
sudo docker ps
- Stop running container:
sudo docker stop <container_name>
- Start/stop Docker service:
sudo service docker start
sudo service docker stop
- Location of configuration file:
/usr/share/hassio/homeassistant
Hass.io command:
- Stop service:
sudo systemctl stop hassio-supervisor.service
sudo systemctl stop hassio-apparmor.service
- Disable service:
sudo systemctl disable hassio-supervisor.service
sudo systemctl disable hassio-apparmor.service
- If there is a need to re-install Hass.io, the following services and folders need to be removed before re-installation. Remove service:
sudo rm -rf /etc/systemd/system/hassio-supervisor.service
sudo rm -rf /etc/systemd/system/hassio-apparmor.service
- Remove Hass.io folders:
sudo rm -rf /usr/sbin/hassio-supervisor
sudo rm -rf /usr/sbin/hassio-apparmor