HUB
Sign inSign up
psql logo

alpine/psql

Sponsored OSS

By alpine

•Updated about 8 hours ago

psql — The PostgreSQL Command-Line Client

Image
Integration & delivery
5

1M+

alpine/psql repository overview

psql — The PostgreSQL Command-Line Client

⁠source of Dockerfile

https://github.com/alpine-docker/multi-arch-libs/blob/master/psql/Dockerfile⁠

⁠Daily CI build logs

N/A

⁠Docker image tags

https://hub.docker.com/repository/docker/alpine/psql/tags⁠

⁠quick start
$ alias psql="docker run -ti --rm alpine/psql"

$ psql -d <db-name> -U <username> -W

or

# make sure you have set the variable $PSQL_CONNECTION_STRING, it can get from aws secret manager, azure keyVault, or setup directly.
# sample for reference: 
# postgres://psqladmin:[email protected]:5432/psql?sslmode=require 

$ psql $PSQL_CONNECTION_STRING 

or

# run sql script directly

$ psql $PSQL_CONNECTION_STRING -f policy.sql
Tag summary
Recent tags
Content type
Image
Digest
sha256:ef1ffe1d5…
Size
7.9 MB
Last updated
about 8 hours ago
docker pull alpine/psql:latest
This week's pulls