March 17, 20251 yr Okay, so I have a question about automatically updating a file that is in a docker, but I think it's more a generic question, not something specific to this docker. And I'm wondering if this approach below works (not sure about the path!) or, should I be doing something else altogether, as it's a docker?! Basically, with the docker binhex-get-iplayer, it has a script which downloads/moves files, but I need it to do this for m4a files, along with the default mp4, so I tweaked a docker script start.sh: from if [[ -n $(find /data/get_iplayer/incomplete/ -name '*.mp4') ]]; then to if [[ -n $(find /data/get_iplayer/incomplete/ -name '*.m??') ]]; then Then, assuming this file will get overwritten when the docker updates, I was thinking I could just cron a script to check the contents of this start.sh file, and 'sed' the line to replace the mp4 string each time. But ... the file on the Unraid filesystem is in a "weird" folder, which I'm unsure if it will change or not? I found it here (along with a bunch of other dockers with similar 'long random string directory name': /var/lib/docker/btrfs/subvolumes/39b661b458331e319abf6b115bf8557821a8429853db56309846bbb6bb976ede/home/nobody/start.sh And, also wondering if there is a better way to make custom modifications to a docker, etc.?? thanks
March 17, 20251 yr Community Expert @binhex thoughts... docker execute and user scirpt? https://docs.docker.com/reference/cli/docker/container/exec/ and or add a docker varible and or volume to set a path in the container -- file replacement... I don't recommend messing with /var/lib/docker/btrfs/subvolumes/
March 17, 20251 yr 11 hours ago, kilo said: But ... the file on the Unraid filesystem is in a "weird" folder, which I'm unsure if it will change or not? I found it here (along with a bunch of other dockers with similar 'long random string directory name': yeah do NOT edit that file, i will have a little think about the best way to achieve this, please can you post a link this in the support thread for the container so i don't forget.
March 18, 20251 yr Author 10 hours ago, bmartino1 said: @binhex thoughts... docker execute and user scirpt? https://docs.docker.com/reference/cli/docker/container/exec/ and or add a docker varible and or volume to set a path in the container -- file replacement... I don't recommend messing with /var/lib/docker/btrfs/subvolumes/ Thanks. Okay so don’t mess with the /var/lib/docker stuff - i hear it. I took a look at the docker variable for the path, but couldn’t really figure it out, so will leave that alone. Will keep a track on any changes to this docker to see if there is a permanent solution, else i will just keep on checking the file and editing it manually for now. :)
April 3, 20251 yr Community Expert Please use the next docker image and add docker variable to edit the file in docker format to not break host and make edits to use the player.
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.