ImmichI
Immich12mo ago
daicon

Help Windows Docker DEsktop - Postgres container restart boot

Hi
I can't get the postgres container to run correctly, it is always restarting.
I have tried with the windows recommendations to use a new volume ‘pgdata, and the behaviour is the same.

What could be happening?

Logs container postgres:

2024-12-28 10:26:39 The files belonging to this database system will be owned by user "postgres".
2024-12-28 10:26:39 This user must also own the server process.
2024-12-28 10:26:39
2024-12-28 10:26:39 The database cluster will be initialized with locale "en_US.utf8".
2024-12-28 10:26:39 The default database encoding has accordingly been set to "UTF8".
2024-12-28 10:26:39 The default text search configuration will be set to "english".
2024-12-28 10:26:39
2024-12-28 10:26:39 Data page checksums are enabled.
2024-12-28 10:26:39
2024-12-28 10:26:39 fixing permissions on existing directory /var/lib/postgresql/data ... ok
2024-12-28 10:26:39 creating subdirectories ... ok
2024-12-28 10:26:39 selecting dynamic shared memory implementation ... posix
2024-12-28 10:26:39 selecting default max_connections ... 100
2024-12-28 10:26:39 selecting default shared_buffers ... 128MB
2024-12-28 10:26:39 selecting default time zone ... Etc/UTC
2024-12-28 10:26:39 creating configuration files ... ok
2024-12-28 10:26:40 running bootstrap script ... ok
2024-12-28 10:26:44 performing post-bootstrap initialization ... ok
2024-12-28 10:26:46 syncing data to disk ... ok
2024-12-28 10:26:46
2024-12-28 10:26:46
2024-12-28 10:26:46 Success. You can now start the database server using:
2024-12-28 10:26:46
2024-12-28 10:26:46 pg_ctl -D /var/lib/postgresql/data -l logfile start
2024-12-28 10:26:46
2024-12-28 10:26:46 waiting for server to start.... stopped waiting
2024-12-28 10:26:48
2024-12-28 10:26:48 PostgreSQL Database directory appears to contain a database; Skipping initialization
2024-12-28 10:26:48


Thanks
Was this page helpful?