-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow ddclient.conf to be served from read-only filesystem #29
Comments
It seems the issue is not that it's read only, but that you mapped a file as /config where our container expects a folder and wants to do some init logic on it. See here for the init logic: https://github.com/linuxserver/docker-ddclient/blob/master/root/etc/cont-init.d/30-config If you save your customized ddclient.conf file as a secret and mount it as It will basically replace our default with your default, which the container will copy into the /config folder during initial start and use it. |
No, I really mapped
So I mapped, the secret to a The trick with mounting on Thanks ! |
But even with mounting on
However, as it doesn't seem to impact the functionality, it's ok for me. |
@aptalca fyi, that is the code part which fails if either Interestingly it still moves on, but I would suggest to check for a read-only filesystem here or silent the error messages (I'm missing a |
oh, that's right. Forgot about that chown |
trying based on linuxserver/docker-ddclient#29
Expected Behavior
This is a feature request. It would be cool, if this image would allow a
ddclient.conf
which is store on read-only filesystem. The use case here, that if you use this image within Kubernetes and provide the configuration from a ConfigMap / Secret, then the file is mounted read-only.A sample K8s deployment would look like:
where the config is stored in a secrtet named
ddclient-config
.It would be awesome to not raise in error in this setup.
Current Behavior
Currently it looks like that it works, but some errors are shown on the console:
The text was updated successfully, but these errors were encountered: