You should NOT have to do that. You still need to modify and then re-run your docker run commands but at least Portainer simplifies part of it. I do use Portainer to manage my docker environment but use compose to run up and update. Restarting the supervisor only restarts the supervisor itself (which might be useful for checking for updates). For exapmle, work just fine, but when container is created without --restart=unless-stopped and service (systemctl) is created to start and stop hass container it fails as shown in first code window. This file has been truncated. Hassio is great to get started but I may move away to a Home Assistant installation to gain more flexibility. Now you can decide between two methods, only install HA, meaning only HomeAssistant is installed, no addOns, no managing outside HA. The supervisor image version is 201, Operating environment (HassOS/Generic): sudo docker restart homeassistant (or whatever the container name is). First, your error is related to your install. To do that you have 2 options. Actually Im just curious why this happen. if supervisor is not running, you need to try. Also, I see that there's a "repair" function in /usr/src/hassio/hassio/homeassistant.py that looks like it forces an install, and the install functions cause the docker start to occur. You have a few possible installation methods with HA, depending on what you want later. You can install the HA cli to run an bare metal, without the hassio ssh add-on. Added MQTT (which I had running on a separate PI before), Grafana and influxdb. According to the help for that script, "host reboot" means rebooting my Linux box. environment: I never want to shotgun an update of all containers, or a start/stop of all containers. Install Portainer with the code I listed in my previous post. Use Portainer to remove the existing container. systemctl restart hassio-supervisor.service, I found if you install HassOs, at least the 64-bit VM, it gets unstable & need a reboot. However I would definitely use docker-compose. Id like to add restart always and the location of my usb stick device /dev/ttyACM0. And I dont run anything before after etc. That seems super weird. So, this is about Home Assistant Supervised or Home Assistant OS? and here https://www.home-assistant.io/hassio/commandline/. Alternatively, you can do the same from the command line, but Portainer has a nice web interface that makes it super easy. container_name: hassio_supervisor Read up on it, youll find the format for docker-compose.yml files very familiar to what you do in homeassistant. Why would rebooting my linux box be required just to get the homeassistant instance restarted? systemctl stop hassio-supervisor appears to stop the supervisor docker container, but it leaves the other containers running hassio-audio, hassio-dns, homeassistant, and add-ons. Already on GitHub? I can confirm that there is something wrong with supervisor. In my personal opinion as a former Unix administrator, I think HassOs is likely unstable. I do run Home Assistant Container (and others) on both - Raspbian and Ubuntu - and all containers having restart policy allways are (re-) started as soon as the Docker service is restarted by systemd. It does a DNS lookup to the internal DNS running in a container. The homeassistant container starts correctly at boot. My point, when supervisor is running, but homeassistant is not , the ha CLI wont work. Yes, the only way to fix that is with the ha supervisor repair command, After this is implemented, you have an CLI also with superviserd installations: ( Do not mind MQTT error - mqtt container not running ) My suggestion would be to take a look at the Docker documentation and get at least the basics for Docker. Youll then access Portainer at YOUR_MACHINE_IP:9000. Also, doesnt the availability of the ssh add-on container depends on supervisor running correctly? https://hub.docker.com/r/portainer/portainer. Havent looked at apparmor yet. The local installed part on your host will prevent that and also care that he shutdown/startup correctly on boot. A restart, and all is well again, but I find that just starting it from within HassIO is not sufficient and it really needs the whole docker environment restarted. But with that said, if your HA really hangs this wont work, then the automations wont run anyway. The mount point has to be /config, so that Home Assistant will use it for the configs and logs. That means, your containers cant talk to each other and there is no container who takes the lead (=host). **. You will now see, which containers are running, stopped and why that is. Install Portainer. command, it it possible. ), anyone knows what that means in different behaviour (do not understand much about docker), Actually no, just now it got stuck, I did the restart as per the POST URL, and did not work (it worked before), so I had to do a sudo docker restart homeassistant, and it worked, So I need a way to give easily the Hmm, I just tried that on a regular Hass.io (fully hassos image), the ha command works without homeassistant running. I dont think the supervisor has its own endpoint, yet? But. Instead of managing the compose file on your own, you interact with it and deploy it through portainer. Anyone looking at jumping into this pond, it was pretty straight forward. Go to the sidebar -> Configuration -> Server Controls -> Restart, I cant anything from the GUI if homeassistant isnt running. --device not allowed. I figured that out right away when I looked to see what systemd unit files got installed. ha-dockermon Here's the logs, and I'll show you the problem: The problem is that those docker instances are not, in fact, running! Powered by Discourse, best viewed with JavaScript enabled. add the exports to /etc/profile at the bottom !!! But also the systemd will care that the supervisor is shutdown correctly. Learn more about Reddits use of cookies. :tractor: Hass.io build tools. Supervisor and Homeassistant are both containers. Do not use unless-stopped as the container of course is stopped during shutdown. I use compose to get portainer running on a fresh install, but then use stacks to get the rest up. I've been struggling with what I think is the same problem with perhaps a few different details. homeassistant). I get it, that this is no longer a recommended install and am trying to move to docker. I believe these are responsible for starting the containers at boot. As andygrunwald said, that issue doesn't really explain what the goal is. Youre looking for Sudo docker stop/start
home assistant docker restart