Mats Kindahl 4f9ced003b Unset bootstrap credentials before exec-ing the server (#1412)
POSTGRES_PASSWORD (and related vars) are only needed during initdb and
the temporary-server initialisation phase. After that they serve no
purpose, but remain in the process environment for the entire lifetime
of the container, where any loaded C extension can read them via
environ.

Unsetting them immediately before the final exec ensures the running
PostgreSQL server process starts with a clean environment.
2026-07-06 11:12:21 -07:00
2024-06-03 13:57:56 -07:00
2014-09-04 17:43:59 -07:00
2018-07-30 09:15:32 -07:00
2024-11-21 10:50:21 -08:00
2026-06-10 22:44:05 +02:00
2026-06-10 22:44:05 +02:00

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.

S
Description
Официальный образ Docker для Postgres
Readme MIT
176 MiB
0 Stars 1 Watchers 0 Forks
Languages
Shell 57.1%
Dockerfile 42.9%