Sign inSign up

csrakowski/postgres-cli

By csrakowski

Updated 7 days ago

Simple helper container for PostgreSQL management. Includes postgresql-client and curl.

Image
Developer tools
Databases & storage
Monitoring & observability
2

4.2K

csrakowski/postgres-cli repository overview

Simple helper container for PostgreSQL management. Includes postgresql-client and curl to allow simple and effective database maintenance activities to be automated/containerized.

docker pull csrakowski/postgres-cli:latest

Usages

The default command is set to open the shell, so if you want an interactive session for manual work you can just run it.

docker run -it --rm csrakowski/postgres-cli:latest

You can also override the command by passing in extra arguments as normal, and use it run pg_dump for example. This also works great in Kubernetes CronJobs.

docker run -it --rm csrakowski/postgres-cli:latest pg_dump -h <Hostname> -p <PORT> -U <USER> > dump.sql

Tag summary

Content type

Image

Digest

sha256:bc32247f6

Size

11.3 MB

Last updated

7 days ago

docker pull csrakowski/postgres-cli