Skip to content

ReproFix

  • About
  • Privacy Policy
  • Contact

pg_upgrade

PostgreSQL 18 Docker: fixing the /var/lib/postgresql/data error

October 30, 2026October 29, 2026 by ReproFix
PostgreSQL 18 Docker: fixing the /var/lib/postgresql/data error

Switching Docker Compose to postgres:18 makes the container exit because of the /var/lib/postgresql/data mount. Here is the fix and how to migrate 17 data.

Categories DevOps Tags Docker, Docker Compose, pg_dump, pg_upgrade, PGDATA, postgres Docker image, PostgreSQL 18, volume mount Leave a comment

Recent Posts

  • Spring Boot 4: fixing Cannot map null into type int (Jackson 3)
  • PostgreSQL 18 Docker: fixing the /var/lib/postgresql/data error

Recent Comments

No comments to show.
© 2026 ReproFix • Built with GeneratePress