Need help with fixing Permission issue with PostgreSQL in docker container

Job ID: 32174871

Budget: $15 – $25 CAD

docker logs postgres-db_1


chmod: changing permissions of '/var/lib/postgresql/data': 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.
initdb: error: could not change permissions of directory "/var/lib/postgresql/data": Operation not permitted
fixing permissions on existing directory /var/lib/postgresql/data ...

Need help with fixing this error
Related categories: UNIX PostgreSQL Docker Docker Compose