How to use PG17 pg_tde with Docker?

Hi,

I created the docker-compose file by referring to the following documentation.
URL : Install - pg_tde documentation

version: '3.8'
services:
  db:
    image: perconalab/pg_tde:latest
    container_name: percona_postgres
    environment:
      POSTGRES_USER: ${POSTGRES_USER:-postgres}
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-foobar}
      POSTGRES_DB: ${POSTGRES_DB:-postgres}
    volumes:
      - postgres_data:/var/lib/postgresql/data
      - ./init:/docker-entrypoint-initdb.d
    ports:
      - "5432:5432"
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U postgres"]
      interval: 10s
      timeout: 5s
      retries: 5

volumes:
  postgres_data:
    driver: local

But the Postgres I started is version 16.6.
I would like to use pg_tde enabled Docker with postgres17.
What options should I use for docker build?

Reference

dockerhub: perconalab/pg_tde tag:latest

https://hub.docker.com/layers/perconalab/pg_tde/latest/images/sha256-f9bade0d5e618246b49c833772d654f4b500c352f3ab6b9f596518fca2608178

Thanks

Hello @masashi.kayahara

Thank you for testing and reporting this.
I see the same issue where the docker installation method uses PostgreSQL-16.
I reported this issue here:
https://perconadev.atlassian.net/browse/PG-1280

We are checking this.

Hi, @lalit.choudhary

Thanks for the reply.
Please check the issue.

Thanks.

Hello @masashi.kayahara

This will be fixed with the next percona postgresql 17.2.1 release.

Please subscribe to bug
https://perconadev.atlassian.net/browse/PG-1280 Click on start watching option to get the fix update.

1 Like