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
If you need to connect to the PostgreSQL database, I can recommend odbc driver for PostgreSQL.