PostgreSQL: open-source object-relational SQL database. Signed; SBOM and SLSA v1 provenance.
7.5K
Stable, Open-source Releases, Automated · readystack.dev
readystack/postgresql:18.7-CE-ubuntu24.04-r2
Source, recipe and records
REL_18_7): https://github.com/postgres/postgres/tree/f5c41f6681c910b3f69951bf6fb97c6d74605d25A cosign-signed build of github.com/postgres/postgres REL_18_7 (PostgreSQL 18.7, PostgreSQL License), built clean-room from official upstream source by ReadyStack.
Who: Developers and database administrators who need a reliable relational database for applications of any size.
Why: PostgreSQL is an open-source object-relational database that uses and extends SQL, known for reliability, data integrity and extensibility, with add-ons such as geospatial extensions.
Use case: A team builds a booking application in which double bookings must never happen. PostgreSQL's transactions make each booking all-or-nothing, an exclusion constraint rejects overlapping bookings, and the same database stores flexible JSON details and answers the reporting queries.
About the upstream project, written from its own description: https://www.postgresql.org/about/
Signature, user and attestations below were measured on the published digest sha256:177ede8f9bbd286f325336e842b4b36bba4e38a362f33dcf34490c03f9c7f271 on 2026-12-02.
04daa92344a52dbc) on this release's index digest sha256:177ede8f9bbd286f325336e842b4b36bba4e38a362f33dcf34490c03f9c7f271; verify with cosign verify --key https://readystack.dev/keys/cosign.pub readystack/postgresql:18.7-CE-ubuntu24.04-r2.postgres).This image follows the ReadyStack release-tag convention:
The current release is 18.7-CE-ubuntu24.04-r2 — the release listed at readystack.dev. Release tags use the pattern <upstream-version>-CE-<base-os>-r<N>; the current one is signed, attested (SBOM + provenance), and is provided under the ReadyStack Agreement.
Earlier release tags (an older version or revision in the same pattern) are superseded. They stay pullable so existing deployments can pin them, but they are no longer re-graded, and fixes appear only in newer releases: move to the current release. For a superseded release's build kit, ask support.
Release tags never move, so pulling the same tag again never changes the image. To be offered each new release automatically (a new revision r<N+1>, or a new upstream version), use the ReadyStack Renovate preset: https://readystack.dev/updates.html
Any tag beginning with internal- is an engineering-pipeline artifact published for build observability. It is unsupported, may change or disappear without notice, and must not be used in production.
# ✓ current release
docker pull readystack/postgresql:18.7-CE-ubuntu24.04-r2
# ✗ unsupported (do not pull)
docker pull readystack/postgresql:internal-...
This release is signed; verify it with cosign verify --key https://readystack.dev/keys/cosign.pub readystack/postgresql:18.7-CE-ubuntu24.04-r2 (the signature is recorded in the public Sigstore transparency log). Support: [email protected], as set out in the ReadyStack Agreement.
Single container. A self-contained PostgreSQL 18.7 object-relational database server, compiled from source (./configure && make world-bin && make install-world-bin). The image IS the complete running instance — PostgreSQL itself IS the database, so there is NO external database and NO sidecar. On first boot the entrypoint runs initdb to create the cluster under PGDATA (/var/lib/postgresql/data), then runs postgres in the foreground. Runs fully NON-ROOT as the postgres user.
Secrets go in an env file that only you can read, not on the command line, and passwords that only set up the first start come out of it after setup. Create postgresql.env with install -m 600 /dev/null postgresql.env, then write these lines into it with an editor, with your own values (a value typed into a shell stays in its history). Docker reads each line as written: no quotes around a value, no spaces around =.
# First start only: POSTGRES_PASSWORD sets the postgres superuser's password when the first start initialises an empty volume. Remove this line after setup and recreate the container; the superuser keeps the password.
POSTGRES_PASSWORD=YOUR_SECRET
docker run -d --name postgresql --env-file ./postgresql.env -p 5432:5432 -v pgdata:/var/lib/postgresql/data readystack/postgresql:18.7-CE-ubuntu24.04-r2
Once the first start has initialised the cluster, remove the POSTGRES_PASSWORD line from postgresql.env and recreate the container on the same volume (docker stop -s SIGINT postgresql and docker rm postgresql, then the docker run command again): the entrypoint skips initialisation when the volume has a PG_VERSION file, so the server starts, the postgres superuser keeps its password, and the password is no longer in the container's environment (tested).
The complete --network=none build kit for this image — plus admin/DB/API handbooks, the build's validation records, and its build provenance records — is free to download from GitHub, no account needed, and from readystack.dev/products/postgresql with a free account. A clean-room rebuild from this release's archive on an egress-blocked host reproduced its linux/amd64 digest sha256:48027d8956114ca89c23e47634605a111e99ea2e91a531bcc3fa58047bfc09db on 2026-12-02.
This image contains PostgreSQL®.
Postgres and PostgreSQL are registered trademarks of the PostgreSQL Community Association of Canada.
ReadyStack is not affiliated with or endorsed by PostgreSQL Community Association of Canada.
The name identifies the software in this image; it is built from github.com/postgres/postgres source at REL_18_7 (commit f5c41f6681c9). ReadyStack does not modify its source.
ReadyStack uses no project logos.
Trademark policy: https://www.postgresql.org/about/policies/trademarks/ (read 2026-11-04).
Stable, Open-source Releases, Automated. ReadyStack releases popular open-source apps every week with every available critical and high security fix applied, plus full documentation, reference data, tests and a build recipe that recreates each release bit-for-bit. Each release is rebuilt from its pinned inputs with the network off, checked against its published digest, signed, and scanned and graded again every day. The images and build kits are free, and ReadyStack is soon to be a nonprofit.
readystack.dev · All products · Build kits on GitHub · Defect log · [email protected]
— ReadyStack · readystack.dev
docker pull readystack/postgresql:18.7-CE-ubuntu24.04-r2