Skip to content

Commit

Permalink
feat: Add README
Browse files Browse the repository at this point in the history
  • Loading branch information
DeLoWaN committed Feb 11, 2016
1 parent 180e696 commit 8e50016
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,19 @@
# docker-postgresql-client
# Postgresql Client

This client is compatible with the official postgresql image, which means that it uses the environment variables provided by the image.

## Usage

### Start a postgres database

```
docker run -e POSTGRES_USER=user -e POSTGRES_PASSWORD=pwd -d --name=pg_container postgres:9.5
```

### Use psql or pg_dump command

```
docker run --rm --link pg_container:db kalumkalac/postgresql-client:9.5 psql -c 'create database foo'
docker run --rm --link pg_container:db -v /tmp/foo:/dump kalumkalac/postgresql-client:9.5 pg_dump foo -f /dump/dump_foo.sql
```

0 comments on commit 8e50016

Please sign in to comment.