
Local-pg-1 | T05:32:38.934041494Z 05:32:38.933 UTC HINT: The server must be started by the user that owns the data directory. 05:32:38.933 UTC FATAL: data directory "/var/lib/postgresql/data" has wrong ownership You can now start the database server using: Local-pg-1 | T05:32:38.889820344Z -auth-local and -auth-host, the next time you run initdb. Local-pg-1 | T05:32:38.889814185Z You can change this by editing pg_hba.conf or using the option -A, or Local-pg-1 | T05:32:38.889777268Z initdb: warning: enabling "trust" authentication for local connections Local-pg-1 | T05:32:27.565615497Z selecting dynamic shared memory implementation. Local-pg-1 | T05:32:27.534201568Z fixing permissions on existing directory /var/lib/postgresql/data. Local-pg-1 | T05:32:27.532733838Z The default text search configuration will be set to "english". Local-pg-1 | T05:32:27.532722471Z The default database encoding has accordingly been set to "UTF8". Local-pg-1 | T05:32:27.532715675Z The database cluster will be initialized with locale "en_US.utf8". Local-pg-1 | T05:32:27.532685816Z This user must also own the server process.

Local-pg-1 | T05:32:27.532614737Z The files belonging to this database system will be owned by user "postgres". Starting a Postgres with an empty data folder:


data/postgres directory, enabling data persistence.

This service is set to mount postgresql's data to the host's. I am trying to run a Postgres container using docker-compose up Postgres, with this docker-compose file. This may be a duplicate of #6219 or #6243, but I am not sure. Disabling virtiofs and experimental virtualization framework allows the container to start without issue. Program in container fails to start successfully when it depends on files mounted in shared volume. Diagnostics ID: DE42E1FF-5DD7-437F-9D40-847D8862DBE5/20220408200124Įnabling VirtioFS and Big Sur Virtualization framework does not cause changes in container behavior outside of speed.I have tried disabling enabled experimental features.I have tried with the latest version of Docker Desktop.
