Docker on Raspberry Pi failing at /init (Error 143)

Dear community,

I’m following the official HA guide to install it via Docker on a Raspberry Pi 5 Raspberry Pi - Home Assistant
I’ve got a fresh install of Raspbian for Raspberry Pi 5 (64 bits)
No device is plugged into the RPi5
I’m installing in the officially recommended way

docker run -d \
  --name homeassistant \
  --privileged \
  --restart=unless-stopped \
  -e TZ=Europe/Paris \
  -v /home/pi/hass:/config \
  -v /run/dbus:/run/dbus:ro \
  --network=host \

Unfortunately, it seems the /init never work and is stuck in an infinite loop of restart due to Error 143:

docker ps

COMMAND: “/init”
CREATED: 9 minutes ago
STATUS: Restarting (143) 33 seconds ago
NAMES: homeassistant

Why mount this?

Take it out and see if container run without it

The Raspberry Pi 5 is NOT supported currently in the full install method, I see no reason why it would be supported in the docker method either. It’s an architecture issue of the host, docker can’t fix that.

You might find this of information:

The reason Home Assistant OS doesn’t support it is down to the hardware. People are already using Docker on a Pi5 to run Home Assistant, an approach recommended by the developers.

1 Like

It is on the official HO documentation to support bluetooth.
In the end it is an issue with jemalloc not working so I applied this fix Alternative - Home Assistant
It is not ideal since it is not optimized but at least it worked.
And I didn’t knew RPi5 was not supported yet tbh.

Try adding
To /boot/config.txt

For now, you can switch to the dev build. Update your compose/dockerfile to use instead of stable.

I would expect a stable release-candidate to support RPI5 soon.

For me, stable was failing on my RPI5 with this error which the devs seem to have already addressed. Thank you!

Fatal Python error: _PyRuntimeState_Init: memory allocation failed