Connect to postgres running in docker container

  docker

I need to connect to postgres running in my docker container. Below image shows that the container is listening on port 5432.
When I tried to connect to the db, it work however only shows one table which is not what is expected. It seems it connected to wrong host or database.

enter image description here

Please advise how to connect using pgadmin.

Source: Docker Questions

LEAVE A COMMENT