Postgres database based on CentOS 7 image
10K+
Simple Docker image that installs Postgres v9.6 on CentOS 7. Additionally a user and a database is created (can be configured by environment variables as described bellow).
docker run --name postgres -d -p5432:5432 smaject/postgres
By setting the following variables you can customize the image build:
DB_NAME: Name of the database to be createdUSER: Name of the database userUSER_PASSWORD: User passwordTo build the image use the following command (add --build-arg option if you want to overwrite variables):
docker build -t smaject/postgres .
Content type
Image
Digest
Size
281.3 MB
Last updated
almost 8 years ago
docker pull smaject/postgres