docker-readthedocs icon indicating copy to clipboard operation
docker-readthedocs copied to clipboard

Wrong ownership of postgres data directory (windows)

Open p3trus opened this issue 6 years ago • 2 comments

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 https://github.com/docker-library/postgres/issues/435 . A possible solution would be to use named volumes.

p3trus avatar Nov 02 '18 15:11 p3trus

Modify the docker-compose.yml file to use named volume, see https://github.com/docker-library/postgres/issues/435.

kfrajtak avatar Nov 02 '18 21:11 kfrajtak

Hi, friends. Any plans?

oscarnascimento avatar Dec 06 '18 17:12 oscarnascimento