Install PostgreSQL server using Docker
In this tutorial, I will show you how to install PostgreSQL server using Docker! We will use the docker run command to run a PostgreSQL Docker Image on Docker Hub https://hub.docker.com/_/postgres as follows:
1 |
docker run --name <container_name> -e POSTGRES_USER=<postgre_user> -e POSTGRES_PASSWORD=<postgre_password> -p 5432:5432 -v <mount_folder>:/var/lib/postgresql/data -d postgres:<tag> |
Inside: — name <container_name> is the Docker container name that you… Read More