-
Notifications
You must be signed in to change notification settings - Fork 12
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
Postgres changing permissions failes #22
Comments
Hi, But the idea behind doing it now is trying to avoid having issues with file permissions inside the If the owner is the user that runs and builds the docker containers, as it should be due to the newly introduced changes the permissions warning shouldn't even occure when starting the postgres container because they are set correctly during the docker build. Anyway I pushed a few tiny modifications. Maybe they'll help. If not we'll need to continue investigating. Thanks for checking out. Cheers. |
Hi, i made the suggested changes by @benji4398 on
Is there a configuration somewhere assuming to have Postgres installed on the host system as well? I also reassigned ownership of the (This happens on Ubuntu 20 and above, as I forgot to mention this in my opening post) Thanks for checking! |
Hi! After fixing the issue #21 the postgres container fails with
initdb: error: could not change permissions of directory "/var/lib/postgresql/data": Operation not permitted
After removing the
ARG UID
,RUN chown -R ${UID} /var/lib/postgresql
andUSER ${UID}
statements in the posgres Dockerfile and commenting out theargs: UID: <LOCAL_UID>
statement in the dc_master.yaml the postgres container starts.As far as I know, the postgres image runs as the postgres user per default, so changing the user and permissions seems unnecessary here. If required, maybe run an Ubuntu image and install postgres during build? might also fix issue #21.
The text was updated successfully, but these errors were encountered: