Sign inSign up

bdnteam/postgresql-client-10

By bdnteam

•Updated almost 6 years ago

Container for using postgresql-client

Image
0

1.9K

bdnteam/postgresql-client-10 repository overview

Dockerfile

FROM alpine:3.8
RUN apk add --no-cache postgresql-client=10.12-r0
ENTRYPOINT [ "psql" ]

One example:

docker run -v /tmp/test.sql:/tmp/test.sql -e PGHOST=xxx -e PGPORT=xxx -e PGUSER=xxx -e PGPASSWORD=xxx --rm bdnteam/postgresql-client-10 your_database -f /tmp/test.sql

default is psql or override like this:

docker run -v /backup:/var/pgdata -it --rm --entrypoint pg_dump bdnteam/postgresql-client-10 -h host -U user -f /var/pg_data/mydump.sql db

Tag summary

Content type

Image

Digest

Size

4.7 MB

Last updated

almost 6 years ago

docker pull bdnteam/postgresql-client-10