PostgreSQL 9.5 for Docker with Ubuntu.
1.1K
Note: You cannot configure its database name, username and password, but it does set up a user called postgres (no password) and a database called postgres which you can use instead.
PostgreSQL 9.5 for Docker with Ubuntu .
How to run it?
docker run -d -p 5432:5432 -e POSTGRESQL_USER=test -e POSTGRESQL_PASS=PASSWORD -e POSTGRESQL_DB=test kzybala/postgresql
Result:
d123a80cz3469645bnv645234981545f
How to log to database ?
$ psql -h localhost -U test test
Password for user test:
psql (9.5.10)
SSL connection (protocol: TLSv1.2, cipher: ECDHE-RSA-AES256-GCM-SHA384, bits: 256, compression: off)
Type "help" for help.
test=#
POSTGRESQL_DB: A database that is automatically created if it doesn't exist. Default: dockerPOSTGRESQL_USER: A user to create that has access to the database specified by POSTGRESQL_DB. Default: dockerPOSTGRESQL_PASS: The password for POSTGRESQL_USER. Default: dockerContent type
Image
Digest
Size
104.1 MB
Last updated
almost 8 years ago
docker pull kzybala/postgresql