DEV Community

Discussion on: How To Install and Run PostgreSQL using Docker ?

Collapse
gkhan205 profile image
Ghazi Khan

Hi thanks for this article but when I do this. PGAdmin gets installed and started but when I try to access it on browser with localhost:5050 but it is not working. It shows site can't be reached.

Collapse
shree_j profile image
ShreeJ Author • Edited on

Ensure the docker container is up and running :
docker ps -a

Collapse
gkhan205 profile image
Ghazi Khan

Yes it is running and shows that open 0.0.0.0: , but still not able to access on browser.

Thread Thread
prab2112 profile image
Prabhakar Pandey

It looks like you missed to give port while running the pgadmin ?

Thread Thread
gkhan205 profile image
Ghazi Khan

I have given the port too, still it doesn't work.

Thread Thread
rajendragosavi profile image
Rajendra Gosavi

you are missing. -d flag. the in order to run in deamon mode you need to dive -d flag -
docker run --rm -d -p 5050:5050 thajeztah/pgadmin4