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

permissions issue with pgdata bind mount in postgres container on some host systems #941

Open
sgfost opened this issue Jun 10, 2024 · 0 comments
Labels

Comments

@sgfost
Copy link
Contributor

sgfost commented Jun 10, 2024

The postgres image sets up a user postgres with id 999 which owns /var/lib/postgresql/data/pgdata/docker/data https://github.com/docker-library/postgres/blob/master/12/bookworm/Dockerfile

On at least one linux system (mint without systemd i.e. no systemd-coredump user with id 999) the container gets tripped up on not having permission to chmod /var/lib/postgresql/data/pgdata

https://stackoverflow.com/a/66502465 works as a manual solution but will break when docker-compose.yml gets re-generated

related notes from the image docs: https://github.com/docker-library/docs/blob/master/postgres/README.md#arbitrary---user-notes

@sgfost sgfost added the build label Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant