Reboot HA in docker

Hi,
I noticed that when running HA in a docker container, restarting home assistant (e.g. due to a config change) is only working correctly if I restart the container.

The built-in restart mechanisms (in config panel or calling the homeassistant service) don’t seem to work. It shuts down but is not coming back online.

Is that normal and by design?

Thanks
Jochen

I don’t think so. I run in docker as well and I can restart from the config panel. It shows a toast saying that it failed, but watching the logs it does actually restart.

I notice in general HA restarts can be inconsistent.
Sometime it comes back and sometime not. This is with docker, HASS.io and manual install.

Personally I prefer restart container as result is consistent and faster.

If you’re running hassio then the restart ha option in the hassio menu works fine. The restart option in config screen does not work reliability

I have the same issue, have to restart the container. Has not even once restarted HA correctly from the GUI, even after the initial clean install.

For reference, here is my docker-compose.yaml running on a raspberryPi 3 using the image from https://hub.docker.com/r/homeassistant/raspberrypi3-homeassistant/

Homeassistant Version 0.61.1
Docker version 18.01.0-ce, build 03596f5

version: '2'
services:

  db:
     image: hypriot/rpi-mysql:5.5
     volumes:
        - /home/pi/docker/mssql//mysql:/var/lib/mysql
     restart: always
     expose:
       - "3306"
     environment:
       MYSQL_ROOT_PASSWORD: '<<redacted>>'
       MYSQL_DATABASE: '<<redacted>>'
       MYSQL_USER: '<<redacted>>'
       MYSQL_PASSWORD: '<<redacted>>'

  web:
    depends_on:
       - db
    image: homeassistant/raspberrypi3-homeassistant
    volumes:
      - /home/pi/docker/homeassistant:/config
      - /etc/localtime:/etc/localtime:ro
    devices:
      - /dev/ttyACM0:/dev/ttyACM0
    restart: always
    network_mode: host