PostgreSQL is an industry-proven, mature, feature-rich relational database management system with a flexible support for both small applications and large-scale venues.
This PostgreSQL distribution is provided by The PostgreSQL Global Development Group packaging team.
Run a temporary container with a PostgreSQL server with no authentication:
docker run -e POSTGRES_HOST_AUTH_METHOD=trust sourcemation/postgresql:latest
Please note that this is not recommended for production usage.
Substitute -e POSTGRES_HOST_AUTH_METHOD=trust with -e POSTGRES_PASSWORD=<ADMIN_PASSWORD> for any authentication method.
For database persistence and password-based authentication, use a command similar to:
mkdir $HOME/my-postgresql-files
sudo chown 26:26 $HOME/my-postgresql-files
docker run -e POSTGRES_PASSWORD=changeme -v $HOME/my-postgresql-files:/var/lib/postgresql sourcemation/postgresql:latest
This image uses the following environment variables:
LANG="pl_PL.utf8"
PG_MAJOR="14"
PG_VERSION="XXX - set during build"
LC_ALL="pl_PL.utf8"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/pgsql-14/bin"
PGDATA="/var/lib/postgresql/pg-data"
APP_VERSION="XXX - set during build"
APP_NAME="postgresql"
This image exposes the following ports:
Please note that the ports need to be either manually forwarded with the
-p option or let Docker choose some for you with the -P option.
Contributions are welcome! Propose new features by creating issues or submit pull requests on the Sourcemation GitHub repository.
Disclaimer: The sourcemation/postgresql image is not affiliated with The
PostgreSQL Global Development Group. The respective companies and organisations
own the trademarks mentioned in the offering. The sourcemation/postgresql
image is a separate project and is maintained by
Sourcemation.
The server runs as the system user and group postgres, them having UID and
GID 26 (contrary to the default value of 70). The /var/lib/postgresql
directory holds the user's home directory, the databases, and is preconfigured
as a volume - for persistence, in case of a container removal and recreation,
mount that directory during the container startup command - see the "Advanced
usage examples" paragraph for examples.
A detailed risk analysis report of the image and its components can be found on the Sourcemation platform.
For more information, check out the overview of PostgreSQL® page.
The base license for the solution (PostgreSQL) is the PostgreSQL License. The licenses for each component shipped as part of this image can be found on the image's appropriate Sourcemation entry.
Content type
Image
Digest
sha256:4fe6cfdb1…
Size
248.2 MB
Last updated
5 days ago
docker pull sourcemation/postgresql