Replies: 9 comments
-
Hey @malves, When following the steps described in the README, the files should have been copied over, already. The problem is I'm probably not the best one to help you troubleshoot this issue, I've just started out with docker and don't know all too much about it. You might be able to find someone who can help on the DBtech or our community Discord: https://discord.gg/M9J6hFq |
Beta Was this translation helpful? Give feedback.
-
Any time you mount something (file or folder) to an existing one within a container, the local file/folder overwrites the one within the container (technically the one within the container still exists as a different layer, but it's "invisible"). in other words. mounting an empty
You have to copy out the stuff from the I forget offhand, and am too lazy atm to look it up ;) but I think I recall the readme showing how to do a quick copy of the htdocs folder the first time you run it using a |
Beta Was this translation helpful? Give feedback.
-
Btw, really, you don't need to copy the entire contents of the htdocs folder (and probably shouldn't). It's enough to just copy out and then mount any files or folders you will customize. These are the only things that I mount in mine:
the |
Beta Was this translation helpful? Give feedback.
-
Hi, stumbled over the same issue today and would like to add my 2 cents to the disccusion:
|
Beta Was this translation helpful? Give feedback.
-
I agree, it is a very nice convenience when the container auto-populates necessary files in mounts. A lot of container authors will add a small bash script to check on startup whether they exist and if not, copy them over. There are source code examples out there; in fact I just saw one recently, but forget where I saw it, and didn't bookmark.
As far as I can tell from my own usage so far, the files that I mentioned are the only ones that get changed via the UI, but @JulianPrieber is the expert to ask on that one (it's his project =).
That would work fine; I personally like to only mount files that change (my own customizations/settings), since there's no other need generally to store a bunch of files that either never change, or I have no control over. I prefer to leave those in the container. It also lessens a bit of potential confusion when looking through files for something, and obviously hard drive clutter, and space, especially when using a smaller SSD. It also makes a bit more sense for container portability to leave as much inside the container as possible. |
Beta Was this translation helpful? Give feedback.
-
Definitely would love to see this added to this project. Just another nice quality of life improvement for the project. Unfortunately I am not docker literate enough to help out with this. |
Beta Was this translation helpful? Give feedback.
-
Have a look at this function: |
Beta Was this translation helpful? Give feedback.
-
I will count this one as solved and convert it into a discussion. |
Beta Was this translation helpful? Give feedback.
-
This could help here: |
Beta Was this translation helpful? Give feedback.
-
Hello there,
I am trying to deploy llc on my synology NAS. I have mounted the folder /htdocs to an external folder (/Docker/llc). When I run the container, the folder /Docker/llc is empty.
Do I have to do something to copy all llc files to my external target folder ?
Thank you !
Beta Was this translation helpful? Give feedback.
All reactions