Docker Official Image packaging for Postgres
Go to file
Tianon Gravi 3e9b4eaaeb Replace `su-exec` with `gosu`
There's a major issue with `su-exec` whose fix has gone unreleased for 5 years (typos leading to running code as root, the opposite of the purpose of the program).

This also decreases our Debian vs Alpine variance.

Due to user scripts/downstream code potentially using `su-exec`, I have included a compatibility symlink to `su-exec` for all versions less than the 17 pre-release.
2024-06-03 13:57:56 -07:00
.github/workflows Bump `actions/checkout` to v4 2024-05-22 22:45:53 +02:00
12 Replace `su-exec` with `gosu` 2024-06-03 13:57:56 -07:00
13 Replace `su-exec` with `gosu` 2024-06-03 13:57:56 -07:00
14 Replace `su-exec` with `gosu` 2024-06-03 13:57:56 -07:00
15 Replace `su-exec` with `gosu` 2024-06-03 13:57:56 -07:00
16 Replace `su-exec` with `gosu` 2024-06-03 13:57:56 -07:00
17 Replace `su-exec` with `gosu` 2024-06-03 13:57:56 -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 Replace `su-exec` with `gosu` 2024-06-03 13:57:56 -07:00
Dockerfile-debian.template update to gosu 1.17 2024-02-20 16:46:13 -08:00
LICENSE Remove ending year from LICENSE 2018-07-30 09:15:32 -07:00
README.md Update generated README 2022-12-20 14:23:18 -08:00
apply-templates.sh Replace `su-exec` with `gosu` 2024-06-03 13:57:56 -07:00
docker-ensure-initdb.sh Add new "docker-ensure-initdb.sh" script 2023-12-11 10:58:54 -08:00
docker-entrypoint.sh Merge pull request #1166 from infosiftr/unlimited-passwords 2023-12-21 16:27:15 -08:00
generate-stackbrew-library.sh Move latest to 16 2023-09-14 14:33:51 -07:00
update.sh Add initial jq-based templating engine 2021-06-16 10:36:52 -07:00
versions.json Add 17 beta1 2024-05-29 17:09:26 -04:00
versions.sh Update to alpine 3.20 2024-05-22 22:39:44 +02: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.


  • build status badge
  • build status badge
Build Status Badges (per-arch)
amd64 build status badge arm32v5 build status badge arm32v6 build status badge arm32v7 build status badge
arm64v8 build status badge i386 build status badge mips64le build status badge ppc64le build status badge
s390x build status badge put-shared build status badge