Skip to content

Instantly share code, notes, and snippets.

@bryant-huang
bryant-huang / docker_logs
Created March 23, 2020 18:23
Postgres compose error
fixing permissions on existing directory /var/lib/postgresql/data ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... posix
selecting default max_connections ... 20
selecting default shared_buffers ... 400kB
selecting default time zone ... Etc/UTC
creating configuration files ... ok
2020-03-23 18:21:29.906 UTC [80] FATAL: data directory "/var/lib/postgresql/data" has wrong ownership
2020-03-23 18:21:29.906 UTC [80] HINT: The server must be started by the user that owns the data directory.
child process exited with exit code 1