Comments (9)
Are you sure the database is recreated at every start ?
I posted my docker-compose in #108 and have been using it since a long time. I'm pretty sure it doesn't rebuild at every start.
There are times where minidlna doesn't pickup new files, then I just execute this command to do the soft-rescan.
docker exec -it minidlna minidlnad -r
The container doesn't need to be started or stopped and minidlna picks up the new files almost instantly.
from docker_base_images.
Hi @accountForIssues . Thank you for your idea. Maybe you got me wrong:
I am not speaking about restart / reboot.
I'm intereseted in a smooth update procedure.
I re-created the container to update the container itself to the latest version
(high level procedure: pull latest image, delete container, start ne container with new image, keep volumes).
Result: An update is similar to setup a very new container, you just keep data on your persistent volumes/bind mounts.
from docker_base_images.
Okay, well using the docker-compose will let you do that.
I assume you were talking about the docker run
command given in the README where there is a loss of data upon updating ? If so, that's what I was afraid as well and hence just went the compose route to write data to disk.
from docker_base_images.
I am not quite sure I understand what the issue is, but I think this is intended behavior. The container does not mount any volumes, and no data is preserved between runs. Unless you specify runtime volumes that you want to keep (cache, settings, etc.). And in that case, @accountForIssues is perfectly right, you can docker exec
the desired rescan commands into the running container.
from docker_base_images.
Sorry for the long time to respond. Let me explain my use case.
Minidlna is running on a NAS with Openmediavault.
Some of the users may not be skilled linux users.
Ask them to run a docker exec -it minidlna minidlnad -r
would be impossible...
So portainer is used as a GUI to docker. I was looking for a way to update the database with the portainer UI.
And other docker image provider may provide a ENV variable to enable update on reboot, instead of a re-create.
If you can provide a "minidlnad -r" run on boot that would be sufficient (My idea of an ENV variable just make it configurable).
After that, I can just tell the others to reboot the whole NAS (or the container via portainer) and check if the files became visible...
from docker_base_images.
Okay, I don't see why that would hurt. I will work on it in the next few days.
from docker_base_images.
Okay, I don't see why that would hurt. I will work on it in the next few days.
And then Hurricane Ida hit my city, New Orleans!
But now I added 2 options to the environment:
FORCE_SCAN=true
will start with-r
, which forces a rescanFORCE_REBUILD=true
will start with-R
, which forces a rebuild of the database
I hope that helps. If you want to test it, use the vladgh/minidlna:sha-d3ba2bc
tag, but it should be merged and I will create a new release very soon.
from docker_base_images.
Release v1.2.0 is published
docker pull vladgh/minidlna:1.2
from docker_base_images.
And then Hurricane Ida hit my city, New Orleans!
Oh wow, I hope you and your family are doing well.
But now I added 2 options to the environment:
Thank you! It looks very much I was looking for. I really appreciate that very much.
I will check it out.
from docker_base_images.
Related Issues (20)
- How to set translation HOT 4
- Latest image won't start (/etc/group.8: Permission denied) HOT 2
- [minidlna] How to make miniDLNA work remotely over ZeroTier? HOT 2
- [minidlna] Please bump version to 1.3.0 HOT 6
- [minidlna] support timezone
- [minidlna] Ошибка работы со всеми сборками, после 0.5.0 HOT 14
- [minidlna] MiniDLNA not showing me any playlists HOT 7
- Dependency Dashboard
- Adding inotify to entrypoint.sh HOT 1
- MiniDLNA: File Permissions HOT 2
- MiniDLNA root_container HOT 3
- [MiniDLNA+podman] Health check always fails HOT 5
- Action Required: Fix Renovate Configuration
- [minidlna] BrowseContentDirectory Returning UPnPError 402 - Invalid Args HOT 1
- Healthcheck don't pass when minidlna tcp port is changed. HOT 8
- s3Sync container can't exclude certain files/directories. HOT 2
- Failed to set TZ, due to tzdata missing from image HOT 9
- MiniDLNA build fails
- Log file missing HOT 1
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_base_images.