On my RaspberryPi 4 with Raspbian I am running a HA from docker image with docker compose. A lot of stuff, integration and devices are working flawlessly (including ZigBee).
I was searching for the same issue (āRetrying setup: DBusā¦ā) with ādocker-composeā and found this thread. I didnāt see anywhere about dbus in docker-compose (not just docker, and Iām still not great with docker things). So this post helped.
I ran docker-compose up -d and it looks like itās working (but I donāt have any bluetooth devices!).
Is it possibly as simple as not āup -dā to recreate (vs. restarting) for you?
Thanks for your post.
Glad it helped! Docker compose is just a āwrapperā over docker, so you can write down docker configuration in one .yml file, including multiple services (multiple docker images).
āupā command creates and starts the container, ā-dā simply detaches docker from the current process (run containers in the background).
A kind question for you - what kind of system do you have (HW/OS - Raspberry Pi 4? Raspbian?)
I understood that in your case adding /run/dbus volume was enough to get rid of startup error for Bluetooth integration in HA?
Thanks!
Iām glad yours is working now
I use a Raspberry Pi 4 with Raspbian.
I know a āreasonableā amount about docker-compose and Docker, but I donāt often have to translate Docker-specific options to docker-compose like this. Itās obvious enough when you know (-v is for volume), but Iām still getting used to that kind of thing without examples.
Just to elaborate on what is happening here, merely running restart only restarts the existing container. Thus, even though home-assistant restarts, the container is the same. Thus, your new docker configuration is not parsed or applied. For this, a new container must be created. With the docker command you would take it down and back up. But with docker-compose up, it is smart enough to determine which containers have config changes and recreate those ones and bring them back up.