Connect to database with pgAdmin #16251
Replies: 6 comments 3 replies
-
try to use tcpdump on host to capture the PostgreSQL traffic from the pgadmin4 container. |
Beta Was this translation helpful? Give feedback.
-
I honestly feel like this is a network issue relating to my container running pgAdmin, It doesnt even really appear to try and fail, just fails. I still dont think the container can reach the host. |
Beta Was this translation helpful? Give feedback.
-
tcpdump confirmed the capture no packets. In my docker command for pgAdmin I have added,
|
Beta Was this translation helpful? Give feedback.
-
Also, looking at PostgreSQL configuration, its using port 5433 for netbox? Can you please confirm this? Im sure thats not helping! |
Beta Was this translation helpful? Give feedback.
-
Its weird but I also have a listening socket on 5432. I have active connections to this socket too. |
Beta Was this translation helpful? Give feedback.
-
I installed pgAdmin the using the non docker method, and it connected to the database on port 5432 first time, Was definitely the container unable to communication with the host, and I could not resolve it :(. Hate that. |
Beta Was this translation helpful? Give feedback.
-
Hi, I am using pgAdmin running in a docker container.
I am trying to use pgAdmin to better manage the PostgreSQL database as im not great with SQL cli,
I am running netbox on the host machine, not in docker,
I am running pgAdmin in docker,
The problem I am having is that I cannot connect to the HOST database from within the docker container,
Does anyone know how I can do this? Ive tried with the IP address 172.16.101.2 and localhost / 127.0.0.1 but they all fail to connect.
Here is my docker run,
Beta Was this translation helpful? Give feedback.
All reactions