Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Unable to connect to server: connection to server at "localhost" (127.0.0.1), port 5432 failed

docker inspect 
	-f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' 
	<container_name_or_id>
    
# Outputs is the IP address you need to connect to
 
PREVIOUS NEXT
Tagged: #Unable #connect #connection #server #port #failed
ADD COMMENT
Topic
Name
7+8 =