This repository contains a simple Docker image that will setup the command line interface (CLI) tools used to manage Postgre 9.x servers. This is useful usually to people that cannot easily install the mysql CLI tools to their machines or those are not available (e.g. macOS users). In order to use it please follow the below steps:
Step 1: docker pull egonbraun/postgresql-cli
Step 2: docker build -t egonbraun/postgresql-cli:latest .
Step 3: docker run -it postgresql-cli
The last step will open a shell as root so you can start running the tools you need. ; -)
Keep in mind that the tools listed here are part of the PostgreSQL 9.3 package. However, you should not have problems running them against a later release of PostgreSQL server.
Here are the volumes created as part of this image so you can for example export data from your PostgreSQL server and store it locally.