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

Persistence volumes are created as owned by root #1277

Open
niblad opened this issue Jun 4, 2024 · 0 comments
Open

Persistence volumes are created as owned by root #1277

niblad opened this issue Jun 4, 2024 · 0 comments

Comments

@niblad
Copy link

niblad commented Jun 4, 2024

In my docker-compose file, I have a persistence volume configuration.

image

When the I run docker-compose up, the folders are created if they don't already exist but they are owned by root. The problem is that when the zookeeper and kafka containers try to start, the appuser user (UID 1000) doesn't have write permissions on these folders so the containers fail and exit.

To fix this, I have to "pre" create the folders and do a chown to have them owned by the user with UID 1000 which is not very practical. It is even possible that this user doesn't exist.

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