Postgresql96 based avkosme/centos image
259
$ /usr/pgsql-9.6/bin/postgresql96-setup initdb
$ systemctl start postgresql-9.6
# CREATE DATABASE dbname;
# CREATE USER username WITH ENCRYPTED PASSWORD 'password';
# GRANT ALL PRIVILEGES ON DATABASE dbname TO username;
Set in file /var/lib/pgsql/9.6/data/postgresql.conf
listen_addresses = '*'
Set in /var/lib/pgsql/9.6/data/pg_hba.conf
host all all 0.0.0.0/0 trust
$ pg_dump -h localhost -U username -d dbname > `date +%Y-%m-%d_%H:%M`-backup.sql
$ psql dbname < data_base_dump.sql
Content type
Image
Digest
Size
241.3 MB
Last updated
about 8 years ago
docker pull avkosme/postgresql96