In this article let’s discuss about Postgresql docker. Let’s go through the following methods without any delay.
$ docker run --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -p 5432:5432 -d postgres
If you are facing any issues with the above approach then try the alternative that is given below. It may look similar by have a try!
Method 2 :
docker run --rm -it -p 5432:5432 -e POSTGRES_PASSWORD=mysecretpassword -e POSTGRES_USER=postgres -e POSTGRES_DB=InitialDB postgres
Hope the above solution works.
Realted Posts : How to install pm2