Closed
Description
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?