-
Notifications
You must be signed in to change notification settings - Fork 30
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
Permissions to env file are not given to the running user if it's not root #45
Comments
I'm a bit confused; which user starts the service? |
@mhutter Oh, this is a tricky question. All I know is:
I can try setting up the minimal reproducible example on some DigitalOcean droplet and give you access to it and the playbooks. Target OS: Ubuntu 20.04.1 LTS (GNU/Linux 5.4.0-113-generic x86_64)
|
A note about the workaround: What probably fixes the issue is
Okay, this is as expected (since the Docker daemon runs as
Yes, indeed, because without One more thing I noticed: This line:
is practically redundant; it sets the env for the process STARTING the container, not the container itself (this is handled by the |
If the
ansible_ssh_user
is different from root (but still a sudoer), the created systemd service fails to start with this errordocker: open /etc/default/<container name>: permission denied.
My current workaround is to change permissions right after the included
mhutter.docker-systemd-service
roleThe text was updated successfully, but these errors were encountered: