Sign inSign up

pygmy/pgcli

By pygmy

•Updated over 7 years ago

Alpine Linux + pgcli in a tiny ~25MB image

Image
8

100K+

pygmy/pgcli repository overview

⁠What's in this image?

Just Alpine Linux, pgcli and tini. Why tini too? see: https://hub.docker.com/r/pygmy/alpine-tini/⁠

⁠What is Alpine Linux?

Alpine Linux⁠ is a Linux distribution built around musl libc⁠ and BusyBox⁠. The image is only 5 MB in size and has access to a package repository⁠ that is much more complete than other BusyBox based images. This makes Alpine Linux a great image base for utilities and even production applications. Read more about Alpine Linux here⁠ and you can see how their mantra fits in right at home with Docker images.

⁠What is pgcli

pgcli⁠ is an alternative and arguably better cli client for PostgreSQL intended as a psql replacement

⁠How to use

docker run -it --rm --link my-postgres-container:postgres postgresql://USER:PASSWORD@HOST:PORT/DATABASE pygmy/pgcli

or if you're using the official PostgreSQL docker image simply docker run -it --rm --link my-postgres-container:postgres pygmy/pgcli - it will pick up the variables you've set for your container (host, port, user, password)

Tag summary

Content type

Image

Digest

Size

24.8 MB

Last updated

over 7 years ago

docker pull pygmy/pgcli