Comments (7)
Thanks for this detail, am thinking we can close this ?
from docker-homebridge.
@seanob86 Take a read of the documentation for docker compose down
versus docker compose stop
Down stops containers and removes containers, networks, volumes, and images created by up
PS Tks for a great issue with detailed instructions to recreate the issue
from docker-homebridge.
Thanks! Yeah i know the difference between down
and stop
/restart
. I just wanted to point out that updates are not persistent and if for example host system reboots/encounters power outage, those updates will need to be run again.
Hopefully there will be a solution for this in the future without relying on new updates to the image e.g. docker compose pull
.
from docker-homebridge.
Just to ensure that my understanding was correct, I ran thru both reboot and power failure scenarios, and I did not lose the update to Homebridge-config-ui-x 4.50.5, but when using the down
command I did lose the update.
Are you seeing something different
Latest docker, running on a RPI 3B, with the most recent docker-homebridge image.
from docker-homebridge.
You are right!! Reboot does not lose the updates. Thanks!
I forgot that I have a script for rebooting my host server which (prior to reboot), iterates through all my docker containers with docker compose down
.
I suppose, as long as down
is not used there should be no issues.
Another alternative which is working is to persist the /opt/homebridge
directory and node and UI updates are persisting through docker compose down
volumes:
- ./config:/homebridge
- ./homebridge:/opt/homebridge:rw
from docker-homebridge.
Are there any downsides to making this change ? Any impact when the container version is updated ?
from docker-homebridge.
I suppose the downside is any newer updates to node or the ui on an updated container, will most likely be overriden by what is on the host/volume mapping. So any versions in the volume mapping that is older will not get the benefits of the updates in the latest container. Therefore it's probably not recommended and best to update those components how it exists today, with the caveat that docker compose down
will undo those updates.
I did further narrow down volume mappings for node and ui, so not all data in /opt
persists. I'm going to leave these mapping on my configuration for now until I discover something that has broken (but for now everything is ok).
- ./homebridge/bin/node:/opt/homebridge/bin/node:rw
- ./homebridge/lib/node_modules/homebridge-config-ui-x:/opt/homebridge/lib/node_modules/homebridge-config-ui-x:rw
Prior to adding the above volume mappings, I copied /opt/homebridge/bin/node
and /opt/homebridge/lib/node_modules/homebridge-config-ui-x/
out of the container to the host.
from docker-homebridge.
Related Issues (20)
- Update to Node.js v18.0.0 HOT 2
- Docker container can't install HOT 11
- Homebridge Docker not working 'functions-have-names' HOT 2
- Homebridge Docker not working 'functions-have-names' HOT 17
- TrueNAS Scale documentation improvement HOT 11
- Unable to remove a plugin HOT 1
- 1.7.0 requires Node.js v18.15.0 or later but Docker image has Node.js v18.13.0 HOT 4
- Can't start running LibreElec HOT 1
- GHCR mirror HOT 4
- Node.js Upgrade HOT 4
- Homebridge 1.7.0 not available on Dockerhub HOT 5
- Docker hub url is incorrect HOT 1
- [Regression] No versioned tags available HOT 3
- Automated build process needs to create a release package HOT 2
- Add Docker tag in footer HOT 2
- Homebridge failed to install using the Homebridge on Portainer guide HOT 7
- Exposing port 8000 HOT 3
- docker publish should has a version tag not just ubuntu HOT 7
- QNAP Installation with Container Station 3 - Wiki Updates HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-homebridge.