Skip to content

Not able to connect to alpine images #692

@nicoleepp

Description

@nicoleepp
$ docker run --detach -p 5432:5432 postgres:12-alpine

$ psql -h localhost -p 5432 -U postgres -d postgres -W 
psql: could not connect to server: Connection refused
	Is the server running on host "localhost" (::1) and accepting
	TCP/IP connections on port 5432?
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 5432?

The above works for running just postgres though:

docker run --detach -p 5432:5432 postgres

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionUsability question, not directly related to an error with the image

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions