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
User and group owner variables are being ignored? #40
Comments
Did you set Because in the first case, yes it will fail to set the permissions appropriately. The second case is working from what I see in my tests. If it is not what you observe while using the second case, could you provide me the container log when it starts ? |
The second one... Here's how I've created my container:
I get this in the log at startup:
Certificates are then successfully generated and placed both in
If relevant, I'm running this inside a Synology NAS using:
|
Indeed, docker and users are not known from the container. You will need to get their uid and gid from the host, and put uid in CERTS_USER_OWNER, and gid in CERTS_GROUP_OWNER. Can you do that with the config you posted, and give me back the result and logs? |
Now it works... I swear I tested the |
No problem. I will stay vigilent about this story about files permissions, as we could not find if there was a real flaw in the container or not. Even if it is only about a misuse from you side, it adds arguments on my side to consider that I really need to refactor the container configuration to make it better readable. And your welcome! |
I've tried to set both the environment variable
CERTS_USER_OWNER
andCERTS_GROUP_OWNER
todocker:users
but it didn't do anything, thearchive
andlive
folders, along with the cert files inside them were still created withroot:root
.I've also tried the corresponding
docker
andusers
IDs instead of the strings but it also didn't work...Am I doing something wrong?
The text was updated successfully, but these errors were encountered: