Answers for "docker could not connect to server: connection refused is the server running on host "localhost" (127.0.0.1) and accepting tcp/ip connections on port 5433?"

CSS
0

Unable to connect to server: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections?

docker inspect \
	-f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' \
	<container_name_or_id>
    
# Outputs is the IP address you need to connect to
Posted by: Guest on March-06-2022

Code answers related to "docker could not connect to server: connection refused is the server running on host "localhost" (127.0.0.1) and accepting tcp/ip connections on port 5433?"

Browse Popular Code Answers by Language