From 1abe096f90249aadc78a35d0d8305ac2fbc4c668 Mon Sep 17 00:00:00 2001 From: Jye Cusch Date: Wed, 8 Oct 2025 14:50:40 +1100 Subject: [PATCH] fix: use fixed version of postgres for local development Resolves an issue failing to start Postgres 18 due to changes in the PGDATA handling. --- pkg/cloud/sql/sql.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cloud/sql/sql.go b/pkg/cloud/sql/sql.go index 65effa55..08f81740 100644 --- a/pkg/cloud/sql/sql.go +++ b/pkg/cloud/sql/sql.go @@ -136,7 +136,7 @@ func (l *LocalSqlServer) start() error { return err } - err = dockerClient.ImagePull("postgres:latest", types.ImagePullOptions{ + err = dockerClient.ImagePull("postgres:17.6", types.ImagePullOptions{ All: false, }) if err != nil { @@ -164,7 +164,7 @@ func (l *LocalSqlServer) start() error { _ = newLis.Close() l.containerId, err = dockerClient.ContainerCreate(&container.Config{ - Image: "postgres", + Image: "postgres:17.6", Env: []string{ "POSTGRES_PASSWORD=localsecret", "PGDATA=/var/lib/postgresql/data/pgdata",