connection to server at “localhost” (::1), port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections?
I have running postgresql docker container with next command docker run -p 5432:5432 -e POSTGRES_HOST_AUTH_METHOD=trust -v /var/lib/postgresql/data:/var/lib/postgresql/data postgis/postgis
connection to server at “localhost” (::1), port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections?
I have running postgresql docker container with next command docker run -p 5432:5432 -e POSTGRES_HOST_AUTH_METHOD=trust -v /var/lib/postgresql/data:/var/lib/postgresql/data postgis/postgis
connection to server at “localhost” (::1), port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections?
I have running postgresql docker container with next command docker run -p 5432:5432 -e POSTGRES_HOST_AUTH_METHOD=trust -v /var/lib/postgresql/data:/var/lib/postgresql/data postgis/postgis
connection to server at “localhost” (::1), port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections?
I have running postgresql docker container with next command docker run -p 5432:5432 -e POSTGRES_HOST_AUTH_METHOD=trust -v /var/lib/postgresql/data:/var/lib/postgresql/data postgis/postgis
Why can I use `host.docker.internal` but not `172.17.0.1` to connect to the host Postgres Server?
I’m new on networking and I just want to understand, why, when creating a container with Docker, I can connect to the host PostreSQL server using host.docker.internal
but not with 172.17.0.1
?