psql — The PostgreSQL Command-Line Client
1M+
psql — The PostgreSQL Command-Line Client
Dockerfilehttps://github.com/alpine-docker/multi-arch-libs/blob/master/psql/Dockerfile
N/A
https://hub.docker.com/repository/docker/alpine/psql/tags
$ 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
Content type
Image
Digest
sha256:7a472183a…
Size
5.1 MB
Last updated
4 days ago
docker pull alpine/psql:18.4Pulls:
45,435
Last week