-
-
Notifications
You must be signed in to change notification settings - Fork 257
How To Update Docker Homebridge
This guide explains how to manually update the Homebridge Docker container to the latest version. The Homebridge Docker image does not update automatically, so you must manually pull the latest image and restart the container. And this process assumes you are running docker-homebridge following the standard setup procedure.
- Docker and Docker Compose (if applicable) are installed.
- You have a running Homebridge container set up as described in How to Install Docker Homebridge.
- Back up your Homebridge configuration directory (e.g.,
/home/user/homebridge) to prevent data loss.
Follow these steps:
-
Navigate to your Docker Compose directory:
cd /path/to/your/docker-compose.ymlReplace
/path/to/your/docker-compose.ymlwith the directory containing yourdocker-compose.ymlfile. -
Pull the latest image:
docker compose pull
This downloads the latest
homebridge/homebridge:latestimage (or the tag specified in yourdocker-compose.yml). -
Recreate and start the container:
docker compose up -d
This stops the existing container, recreates it with the updated image, and starts it in detached mode.
-
Verify the image tag: Ensure your
docker-compose.ymlordocker runcommand useshomebridge/homebridge:latestfor the latest version or a specific version (e.g.,homebridge/homebridge:1.6.0) if desired. - Configuration compatibility: Check the Homebridge Docker documentation for any changes in configuration requirements or environment variables in the new version.
- Backup: Always back up your Homebridge configuration before updating to avoid potential data loss.
-
Troubleshooting: If the container fails to start, check the logs with
docker logs homebridgeor verify your configuration.
For additional details, refer to the Homebridge Docker GitHub repository.