May 13, 20233 yr I've searched and haven't found an answer to this, so I'm probably asking the wrong question. However, I have a container I just added that has a config.json file in it that I need to edit. The json is owned by root and is not writeable from the container's cli. I'm unable to chmod to make it writeable. I'm also unable to map the path. Every time I try I get a failure to start because it can't find an app.js file or something similar. I'm sure this is just my lack of familiarity with the inner workings of Docker, so please be gentle.
May 13, 20233 yr Community Expert If that file is meaningful it should be mapped to appdata, so edit it from the unraid side.
May 13, 20233 yr Author It's not mapped to appdata by default and if I add the path myself it fails with the error and won't start. It's possible I'm doing it wrong.
May 13, 20233 yr Community Expert To map a single file you'd want to copy the file from the container / create an identical one in appdata first, then map that - if it doesn't already exist it won't work
May 14, 20233 yr Author Ok, I think I understand now that I have to create the entire folder structure in the appdata folder or else it thinks it's missing. I can't find a way to make the single json editable, without recreating that entire structure, and I'm not sure what the best way is to recreate that in appdata.
May 21, 20233 yr Author This one boots but doesn't link up the config file: This one also boots but doesn't link up the config file: Same for this one: I'm not sure what I was doing earlier that was causing it to not boot but it seems to be starting every time now. However, I haven't found the magic combo that allows me to edit the file. Placeholder file in appdata or not, the container file never changes.
May 21, 20233 yr Community Expert All of these mappings are folder to folder, if you want to overlay a single file in the container then you want the full path including filename on both sides. Edited May 21, 20233 yr by Kilrah
May 21, 20233 yr Author When I do this it creates the config.json as a folder in appdata, instead of a file.
May 21, 20233 yr Author If I put the file in the appdata location before mapping it using this: I don't see any change in the docker console when doing a cat on the file. It doesn't pick up the changed file in appdata. Just overrides it with the container version.
May 28, 20233 yr Author Solution I never figured out how to edit the defaults, but it appears this particular app does not allow for modifying the defaults anyway. You have to set the changes with URL switches. In my case, it's an image rendering size: &kiosk&height=1080&width=1920 As long as you specify this it allows you to override the defaults in the config file. Edited May 28, 20233 yr by Bitbass
August 25, 20241 yr On 5/28/2023 at 5:53 AM, Bitbass said: I never figured out how to edit the defaults, but it appears this particular app does not allow for modifying the defaults anyway. You have to set the changes with URL switches. In my case, it's an image rendering size: &kiosk&height=1080&width=1920 As long as you specify this it allows you to override the defaults in the config file. Did you ever figure out an ultimate solution for this? Trying to edit a script inside a docker container to change one setting not available but normal means and kinda having the same problem you are. The file isn't showing in the /appdata folder.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.