Public | Automated Build

Last pushed: 8 months ago
Short Description
Short description is empty for this repo.
Full Description

PostgreSQL

Getting Started

$ docker run -d --name "db" shazow/postgresql

The default context inside the docker is the postgres user and local
permissions are trusted for this user so you can run exec commands conveniently.

Try it out:

$ docker exec -it db psql

Reset postgres user password and make a fresh database:

$ docker exec db /init
ALTER ROLE
CREATE DATABASE
* Credentials: url="postgresql://postgres:XXX@172.17.0.32/db"

Backup script:

$ docker exec db pg_dump db > dump.sql
Docker Pull Command
Owner
shazow
Source Repository

Comments (0)