Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 498 Bytes

README.md

File metadata and controls

31 lines (24 loc) · 498 Bytes

pgcli-docker

pgcli in a tiny Docker image powered by Alpine Linux

How to use this image

Print help:

docker run --rm diyan/pgcli --help

Run PostgreSQL server if you don't have it:

docker run -d --name=postgres \
  -p 5432:5432 \
  -e POSTGRES_PASSWORD=secret \
  postgres:9.5

Run pgcli:

docker run --rm -ti --name=pgcli \
  -e PGPASSWORD=secret \
  --link=postgres:postgres \
  diyan/pgcli \
  --host=postgres \
  --dbname=postgres \
  --user=postgres