docker-library / postgres

Docker Official Image packaging for Postgres
http://www.postgresql.org
MIT License
2.14k stars 1.11k forks source link

Data Loss on Container Restart: PostgreSQL Docker Image in TrueNAS Scale #1202

Closed DenisTimofijuk closed 4 months ago

DenisTimofijuk commented 4 months ago

Issue Description:

I'm encountering an issue with the PostgreSQL Docker Official Image on my TrueNAS Scale setup. While I can install the image without any problems and make changes via pgAdmin, upon restarting the image, all modifications are lost, reverting everything back to its initial state.

Expected Behavior:

I expect the changes made within the PostgreSQL container to persist across restarts, ensuring data integrity and consistency.

Current Behavior:

However, it seems that the data is only stored in memory and not being saved to the disks, resulting in loss of changes upon restart.

Steps to Reproduce:

  1. Install the PostgreSQL Docker Official Image on TrueNAS Scale.
  2. Connect to the container via pgAdmin.
  3. Make changes or create new data within the container.
  4. Restart the container.
  5. Observe that all changes are lost, reverting to the initial state.

Additional Information: