Sign inSign up

dencold/pgcli

By dencold

•Updated about 8 years ago

Dockerized version of the pgcli tool for postgres. See https://github.com/dencold/pgcli-docker

Image
0

500K+

dencold/pgcli repository overview

⁠pgcli-docker

Dockerized version of the pgcli http://pgcli.com/⁠ tool for postgres.

⁠Why a docker version?

I generally run my development apps with a separate container for the postgres database. Hooking up the database to the application is achieved via docker links⁠. In order to make it easy to use pgcli on any postgres container, I've made a simple docker wrapper for the command. It is smart about pulling in the linked postgres environment variables and makes it easy to use on your own instances.

⁠Installing

Installing is a simple docker pull away:

docker pull dencold/pgcli

⁠Running

If you have a postgres container already running, all you need to do is link the postgres container to pgcli. For example, if your postgres container was named my-postgres, you can attach pgcli with this one-liner:

docker run -it --link my-postgres:postgres --rm dencold/pgcli

You'll get a prompt for password, once authenticated you'll be in a pgcli session. When you exit, the container will automatically be cleaned up.

For more details, refer to the README on the github repository: https://github.com/dencold/pgcli-docker⁠

Tag summary

Content type

Image

Digest

sha256:3c8752b48…

Size

131.5 MB

Last updated

about 8 years ago

docker pull dencold/pgcli