Open shaharzoo93 opened 11 months ago
Can you please check if this also happens with FROM postgres:14
? This way we'll be able to tell if it's something Timescale-specific.
Ok
Same error with postgres:14
Hello @shaharzoo93,
Thank you for getting back. It seems you are mounting an existing data directory into the container:
volumes:
- './opt/volume/data/db/postgresql/hot_raw_db:/var/lib/postgresql/data'
This is known to be a problematic configuration (see this post and this post) since PostgreSQL can not modify permissions on this mount point.
Could you remove the volume from your docker compose file and try to start the container? Since you ran into the same problem with the PostgreSQL container postgres:14
without any TimescaleDB installation, the chances are high that you are affected by this Docker behavior.
There are some workarounds provided in the postings (e.g., moving the PostgreSQL tmp directory to another location or adding a proper username mapping). Please check if these workarounds help to resolve the problem in your environment.
Docker File -
Docker Compose -
We used the above docker configuration for the container but we are facing the below error continuously