Skip to content

Wrong ownership of postgres data directory (windows) #13

Description

@p3trus

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions