Skip to content

casell/postgresql-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

postgresql-client

Updated version of https://github.com/jbergknoff/Dockerfile/tree/master/postgresql-client (thanks!)

Minimal environment with PostgreSQL client:

  • built on top of alpine base image
  • ~6 MB in size (5 MB base + 1 MB)

Example usage:

$ docker run -it --rm casell/postgresql-client postgresql://user:pass@host:5432/db
...

To override psql and call pg_dump instead:

$ docker run -v /path/for/backup:/var/pgdata -it --rm --entrypoint pg_dump \   
casell/postgresql-client -h host -U user -f /var/pg_data/mydump.sql db
...