PostgreSQL installation on Docker

Hello, I will explain postgreSQL installation on docker

we find the postgreSQL packages with the following command

docker search postgresql

After we list the postgres packages, we select the version we will install and import the package with the docker pull command.

docker pull postgres:[12]

With the docker run command and specifying the postgreSQL directory and port, docker will install postgresql in the background

docker run --name postgresql12 -e POSTGRES_PASSWORD=postgres -d -p 5432:5432 -v /postgres/data:/var/lib/postgresql/data postgres:12

With the docker update command, it performs an update on the latest packages and raises postgresql.

docker update --restart always 88203932bda7

About tayfun inam

Computer Engineer -PostgreSql-Oracle Database Administrator I am about Oracle & SQL Server database, Goldengate, Exadata Machine, Oracle Database Appliance administrator with 8+years experience.I have OCA,PostgreSql senior Certificates I have worked 50+ Banking, Insurance, Finance, Telco and etc. clients as a Consultant, Insource or Outsource.I have done 200+ Operations in this clients such as Exadata Installation & PoC & Migration & Upgrade, Oracle & SQL Server Database Upgrade, Oracle RAC Installation, SQL Server AlwaysOn Installation, Database Migration, Disaster Recovery, Backup Restore, Performance Tuning, Periodic Healthchecks.I have done 2000+ Table replication with Goldengate or SQL Server Replication tool for DWH Databases in many clients.

One comment

  1. If you need to connect to the PostgreSQL database, I can recommend odbc driver for PostgreSQL.

Leave a Reply

Your email address will not be published. Required fields are marked *