PostgreSQL 9.3 for Docker. (Forked from orchardup/postgresql. Thanks!)
$ docker run -d -p 5432:5432 -e POSTGRESQL_USER=test -e POSTGRESQL_PASS=oe9jaacZLbR9pN -e POSTGRESQL_DB=test mazzolino/postgresql-9.3
da809981545f
$ psql -h localhost -U test test
Password for user test:
psql (9.3.4)
Type "help" for help.
test=#
(Example assumes PostgreSQL client is installed on Docker host.)
NOTE: The template database is created in UTF8
locale. This is to
make sure the database will be using UTF8 even if it is being re-created by
the client.