Docker - PostgreSQL
In this post, I will briefly explain the steps to getup and running PostgreSQL docker image. I have explained in Docker post the basics and how to configure and run MySQL.
Identifying the Image
Let’s begin by searching on DockerHub and pick the official PostgreSQL version.
If the pull is successful, you must see postgresql
in the list of docker images.
Start PostgreSQL
The official documentation touch up on the configuration parameters that are available. Let’s start the server now by exposing it on laptop port 5433.
Connecting to Server
There are many ways to connect, I usually use PGAdmin. The following commands you can run to run psql
from server container.
Conclusion
Docker makes it really easy to install software on demand. In my opinion Docker is a must have tool in a Test Engineers arsenal.