Docker Official Image packaging for Postgres
Go to file
Tianon Gravi 5ec8931249 Remove intentionally-breaking "data" symlink and add better detection
This allows for a more graceful error message for the case of users who need to update their volume path.

I tested this with 17 and `--env PGDATA=/var/lib/postgresql/17/docker` (to make sure it still works fine and doesn't complain about the extra volume provided by Docker/`VOLUME`) and 18 with `-v /var/lib/postgresql/data` (where it appropriately errors and explains to me what I should be doing instead).

I also did a reflow on some text in the error message that's designed to fit in 80 columns but was taking 81. 😂
2025-10-15 11:23:03 -07:00
.github/workflows Simplify and update `verify-templating.yml` 2024-12-13 15:02:43 -08:00
13 Remove intentionally-breaking "data" symlink and add better detection 2025-10-15 11:23:03 -07:00
14 Remove intentionally-breaking "data" symlink and add better detection 2025-10-15 11:23:03 -07:00
15 Remove intentionally-breaking "data" symlink and add better detection 2025-10-15 11:23:03 -07:00
16 Remove intentionally-breaking "data" symlink and add better detection 2025-10-15 11:23:03 -07:00
17 Remove intentionally-breaking "data" symlink and add better detection 2025-10-15 11:23:03 -07:00
18 Remove intentionally-breaking "data" symlink and add better detection 2025-10-15 11:23:03 -07:00
.gitattributes Add new "docker-ensure-initdb.sh" script 2023-12-11 10:58:54 -08:00
.gitignore Revert "Added inline SBOM for binaries downloaded outside package manager" 2023-12-11 14:03:58 -05:00
AUTHORS LICENSE (the MIT License) and AUTHORS 2014-09-04 17:43:59 -07:00
Dockerfile-alpine.template Add liburing support to 18+ 2025-09-30 11:58:13 -07:00
Dockerfile-debian.template Remove intentionally-breaking "data" symlink and add better detection 2025-10-15 11:23:03 -07:00
LICENSE Remove ending year from LICENSE 2018-07-30 09:15:32 -07:00
README.md Update README 2024-11-21 10:50:21 -08:00
apply-templates.sh Replace `su-exec` with `gosu` 2024-06-03 13:57:56 -07:00
docker-ensure-initdb.sh Add logic to error out on detection of "old databases" 2025-06-06 11:27:47 -07:00
docker-entrypoint.sh Remove intentionally-breaking "data" symlink and add better detection 2025-10-15 11:23:03 -07:00
generate-stackbrew-library.sh Update latest to 18 2025-09-25 12:46:37 -07:00
update.sh Add initial jq-based templating engine 2021-06-16 10:36:52 -07:00
versions.json Update 18 to 18.0, trixie 18.0-1.pgdg13+3, bookworm 18.0-1.pgdg12+3 2025-09-25 11:22:35 -07:00
versions.sh Add Debian Trixie (remove Bullseye) 2025-08-08 10:41:29 -07:00

README.md

https://github.com/docker-library/postgres

Maintained by: the PostgreSQL Docker Community

This is the Git repo of the Docker "Official Image" for postgres (not to be confused with any official postgres image provided by postgres upstream). See the Docker Hub page for the full readme on how to use this Docker image and for information regarding contributing and issues.

The full image description on Docker Hub is generated/maintained over in the docker-library/docs repository, specifically in the postgres directory.

See a change merged here that doesn't show up on Docker Hub yet?

For more information about the full official images change lifecycle, see the "An image's source changed in Git, now what?" FAQ entry.

For outstanding postgres image PRs, check PRs with the "library/postgres" label on the official-images repository. For the current "source of truth" for postgres, see the library/postgres file in the official-images repository.