Docker Official Image packaging for Postgres
Go to file
Stan Hu 41bd7bf3f4
Add newline to `POSTGRES_PASSWORD` file for initdb
https://github.com/docker-library/postgres/issues/1024 converted all
`echo` calls to `printf`, but this change causes the password file
used by `initdb` to be blank rather than contain a single newline.
As a result, `initdb` will fail to start with an empty value with
the error:

```
initdb: error: password file "/dev/fd/63" is empty
```

`POSTGRES_PASSWORD` can be blank if `POSTGRES_HOST_AUTH_METHOD=trust`
is used. This change adds a newline to restore the original behavior.

Closes #1025
2022-12-22 13:40:11 -08:00
.github/workflows Use new "bashbrew" composite action 2022-11-16 14:07:28 -08:00
11 Add newline to `POSTGRES_PASSWORD` file for initdb 2022-12-22 13:40:11 -08:00
12 Add newline to `POSTGRES_PASSWORD` file for initdb 2022-12-22 13:40:11 -08:00
13 Add newline to `POSTGRES_PASSWORD` file for initdb 2022-12-22 13:40:11 -08:00
14 Add newline to `POSTGRES_PASSWORD` file for initdb 2022-12-22 13:40:11 -08:00
15 Add newline to `POSTGRES_PASSWORD` file for initdb 2022-12-22 13:40:11 -08:00
.gitattributes Add initial jq-based templating engine 2021-06-16 10:36:52 -07:00
.gitignore Add initial jq-based templating engine 2021-06-16 10:36:52 -07:00
AUTHORS LICENSE (the MIT License) and AUTHORS 2014-09-04 17:43:59 -07:00
Dockerfile-alpine.template Add nss_wrapper to alpine images to run container with different user 2022-11-30 21:32:37 +01:00
Dockerfile-debian.template Drop Debian Stretch as it's EOL 2022-06-27 14:37:53 -07: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 Update jq-template for speed improvements 2022-07-13 17:15:18 -07:00
docker-entrypoint.sh Add newline to `POSTGRES_PASSWORD` file for initdb 2022-12-22 13:40:11 -08:00
generate-stackbrew-library.sh Update "latest" to 15 (GA) 2022-10-14 09:36:23 -07:00
update.sh Add initial jq-based templating engine 2021-06-16 10:36:52 -07:00
versions.json Update to alpine 3.17 2022-11-30 17:06:55 +01:00
versions.sh Update to alpine 3.17 2022-11-30 17:06:55 +01: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