Docker Home-Assistant [finish] process exit code 256 beheben
English
Deutsch
Problem:
Ihr Docker-Container, der home-assistant ausführt, beendet sich immer sofort nach dem Start, wobei das Protokoll etwa so aussieht:
docker_compose_up_output.txt
$ docker-compose up
Recreating homeassistant ... done
Attaching to homeassistant
homeassistant | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
homeassistant | [s6-init] ensuring user provided files have correct perms...exited 0.
homeassistant | [fix-attrs.d] applying ownership & permissions fixes...
homeassistant | [fix-attrs.d] done.
homeassistant | [cont-init.d] executing container initialization scripts...
homeassistant | [cont-init.d] done.
homeassistant | [services.d] starting services
homeassistant | [services.d] done.
homeassistant | [finish] process exit code 256
homeassistant | [finish] process received signal 15
homeassistant | [cont-finish.d] executing container finish scripts...
homeassistant | [cont-finish.d] done.
homeassistant | [s6-finish] waiting for services.
homeassistant | [s6-finish] sending all processes the TERM signal.
homeassistant | [s6-finish] sending all processes the KILL signal and exiting.
homeassistant exited with code 0Lösung
Sie müssen den Container mit --privileged=true starten, wenn Sie docker direkt verwenden, oder privileged: true verwenden, wenn Sie docker-compose nutzen.
Hier ist ein Beispiel für eine funktionierende docker-compose.yml-Datei:
docker-compose-example.yml
services:
homeassistant:
container_name: homeassistant
restart: unless-stopped
image: ghcr.io/home-assistant/home-assistant:stable
network_mode: host
privileged: true
environment:
- TZ=Europe/Berlin
volumes:
- ./config:/configCheck out similar posts by category:
Container, Docker, Home-Assistant
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow