My current installation is like this:
- I am running postgres11 on EC2 instance via the package manager.
dpage/pgadmin4and mapping 4499:80. The web UI is hosted at port 80 of the host.
I can access pgadmin page on http://localhost. But from there I can’t connect to the system’s local 5432. This is because this is out of the Docker world and does not know about the mapping.
-p 5432:5432 with
dpage/pgadmin4 , I get this error:
docker: Error response from daemon: driver failed programming external connectivity on endpoint vibrant_ptolemy (8773c583574f427176fb1447b7c2e91643b1df460be526c800fc45a53ee02557): Error starting userland proxy: listen tcp 0.0.0.0:5432: bind: address already in use.
How can I map local postgres to docker container?