chmod: /var/run/postgresql: Operation not permitted The files belonging to this database system will be owned by user "postgres". This user must also own the server process. The database cluster will be initialized with locale "en_US.utf8". The default database encoding has accordingly been set to "UTF8". The default text search configuration will be set to "english". Data page checksums are disabled. fixing permissions on existing directory /var/lib/postgresql/data ... ok creating subdirectories ... ok selecting dynamic shared memory implementation ... posix selecting default max_connections ... 100 selecting default shared_buffers ... 128MB selecting default time zone ... Europe/Berlin creating configuration files ... ok running bootstrap script ... ok sh: locale: not found 2023-12-08 16:04:32.999 CET [25] WARNING: no usable system locales were found performing post-bootstrap initialization ... ok initdb: warning: enabling "trust" authentication for local connections initdb: hint: You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb. syncing data to disk ... ok Success. You can now start the database server using: pg_ctl -D /var/lib/postgresql/data -l logfile start waiting for server to start....2023-12-08 16:04:37.137 CET [32] LOG: starting PostgreSQL 15.5 on x86_64-pc-linux-musl, compiled by gcc (Alpine 12.2.1_git20220924-r10) 12.2.1 20220924, 64-bit 2023-12-08 16:04:37.209 CET [32] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" .2023-12-08 16:04:37.825 CET [35] LOG: database system was shut down at 2023-12-08 16:04:35 CET 2023-12-08 16:04:38.055 CET [32] LOG: database system is ready to accept connections done server started CREATE DATABASE /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/* waiting for server to shut down....2023-12-08 16:04:39.378 CET [32] LOG: received fast shutdown request 2023-12-08 16:04:39.479 CET [32] LOG: aborting any active transactions 2023-12-08 16:04:39.484 CET [32] LOG: background worker "logical replication launcher" (PID 38) exited with exit code 1 2023-12-08 16:04:39.486 CET [33] LOG: shutting down 2023-12-08 16:04:39.698 CET [33] LOG: checkpoint starting: shutdown immediate ...2023-12-08 16:04:43.021 CET [33] LOG: checkpoint complete: wrote 918 buffers (5.6%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.350 s, sync=1.975 s, total=3.536 s; sync files=301, longest=0.385 s, average=0.007 s; distance=4222 kB, estimate=4222 kB 2023-12-08 16:04:43.034 CET [32] LOG: database system is shut down done server stopped PostgreSQL init process complete; ready for start up. 2023-12-08 16:04:43.471 CET [1] LOG: starting PostgreSQL 15.5 on x86_64-pc-linux-musl, compiled by gcc (Alpine 12.2.1_git20220924-r10) 12.2.1 20220924, 64-bit 2023-12-08 16:04:43.471 CET [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 2023-12-08 16:04:43.471 CET [1] LOG: listening on IPv6 address "::", port 5432 2023-12-08 16:04:43.635 CET [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" 2023-12-08 16:04:43.783 CET [48] LOG: database system was shut down at 2023-12-08 16:04:42 CET 2023-12-08 16:04:43.982 CET [1] LOG: database system is ready to accept connections 2023-12-08 16:09:43.883 CET [46] LOG: checkpoint starting: time 2023-12-08 16:11:00.649 CET [46] LOG: checkpoint complete: wrote 746 buffers (4.6%); 1 WAL file(s) added, 0 removed, 0 recycled; write=74.325 s, sync=1.897 s, total=76.767 s; sync files=815, longest=0.053 s, average=0.003 s; distance=4943 kB, estimate=4943 kB