docker-readthedocs
docker-readthedocs copied to clipboard
Wrong ownership of postgres data directory (windows)
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.
Modify the docker-compose.yml
file to use named volume, see https://github.com/docker-library/postgres/issues/435.
Hi, friends. Any plans?