Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Edit container file owned by root

Featured Replies

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.

Solved by Bitbass

  • Author

sudo not available inside the container.

  • Community Expert

If that file is meaningful it should be mapped to appdata, so edit it from the unraid side.

  • 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.

  • 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

  • Author

Ah! Didn't know that. I'll give it a try. 

  • 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.

  • Community Expert

File to file mapping should work. How are you entering it?

  • Author

This one boots but doesn't link up the config file:image.png.0086026cd379b8d6ebfb8a3b227cfde5.png

 

This one also boots but doesn't link up the config file: image.png.87757a7f524429e6399099ef90fbc9b2.png

 

Same for this one: image.png.e7929adfb5c95f0adea8bd733dee42c4.png

 

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.

  • 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 by Kilrah

  • Author

When I do this it creates the config.json as a folder in appdata, instead of a file. image.png.9c6780c1cf6fab025b169458411d425c.png

  • Author

If I put the file in the appdata location before mapping it using this: image.png.2fb2f3c559461116bde760cd14631eee.png

 

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.

  • 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 by Bitbass

  • 1 year later...
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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.