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

Wrong ownership of postgres data directory (windows) #13

Open
p3trus opened this issue Nov 2, 2018 · 2 comments
Open

Wrong ownership of postgres data directory (windows) #13

p3trus opened this issue Nov 2, 2018 · 2 comments

Comments

@p3trus
Copy link

p3trus commented Nov 2, 2018

The postgres db creates the following error on windows.

database_1       | waiting for server to start....2018-11-02 15:30:10.464 UTC [30] FATAL:  data directory "/var/lib/postgresql/data" has wrong ownership
database_1       | 2018-11-02 15:30:10.464 UTC [30] HINT:  The server must be started by the user that owns the data directory.
database_1       | pg_ctl: could not start server
database_1       | Examine the log output.
database_1       |  stopped waiting

This seems to be a known issue according to docker-library/postgres#435 . A possible solution would be to use named volumes.

@kfrajtak
Copy link

kfrajtak commented Nov 2, 2018

Modify the docker-compose.yml file to use named volume, see docker-library/postgres#435.

@oscarnascimento
Copy link

oscarnascimento commented Dec 6, 2018

Hi, friends. Any plans?

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

3 participants