Skip to content
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

consul: docker build has strange permissions on config file. #209

Closed
brucellino opened this issue Mar 19, 2024 · 1 comment
Closed

consul: docker build has strange permissions on config file. #209

brucellino opened this issue Mar 19, 2024 · 1 comment

Comments

@brucellino
Copy link
Owner

The configuration file provisioned with the playbook has unknown permissions, leading to the container not starting:

docker run --rm ghcr.io/brucellino/consul:latest
==> config: Readdir failed on /etc/consul.d/. lstat /etc/consul.d//consul.hcl: permission denied 

Upon closer investigation:

root@9d080a8cdfc7:/home/consul# ls -lht /etc/consul.d/consul.hcl 
-rw-r--r-- 1 consul consul 1.4K Mar 19 04:10 /etc/consul.d/consul.hcl
root@9d080a8cdfc7:/home/consul# su --login consul
$ bash
consul@9d080a8cdfc7:~$ ls -lht /etc/consul.d/
ls: cannot access '/etc/consul.d/consul.hcl': Permission denied
total 0
-????????? ? ? ? ?            ? consul.hcl
@brucellino brucellino transferred this issue from brucellino/ansible-role-consul Mar 19, 2024
@brucellino
Copy link
Owner Author

Closed in #210

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant