Skip to content

[issue] Error while running postgres:11-alpine  #500

Closed
@roychowdhuryrohit-dev

Description

@roychowdhuryrohit-dev

I am trying to run the following
docker run -d --rm \
--name authn-db \
-e POSTGRES_PASSWORD=abcd \
-e POSTGRES_USER=abcd \
postgres:11-alpine \
postgres

docker exec -it \
authn-db \
psql \
-h localhost \
-U postgres

However this results to psql: 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?

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