Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tHq5p-00ABAe-CX for pgsql-general@arkaria.postgresql.org; Sun, 01 Dec 2024 19:58:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tHq5m-00A1KT-OF for pgsql-general@arkaria.postgresql.org; Sun, 01 Dec 2024 19:58:55 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tHq5m-00A1KF-DS for pgsql-general@lists.postgresql.org; Sun, 01 Dec 2024 19:58:55 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tHq5h-000Woc-D9 for pgsql-general@postgresql.org; Sun, 01 Dec 2024 19:58:54 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 4B1Jwl8o1454491; Sun, 1 Dec 2024 14:58:47 -0500 From: Tom Lane To: Alexander Farber cc: pgsql-general Subject: Re: Connection to 127.0.0.1 refused in a Dockerfile based on postgres:17-alpine3.20 In-reply-to: References: Comments: In-reply-to Alexander Farber message dated "Sun, 01 Dec 2024 20:34:48 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1454489.1733083127.1@sss.pgh.pa.us> Date: Sun, 01 Dec 2024 14:58:47 -0500 Message-ID: <1454490.1733083127@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alexander Farber writes: > TLDR "psql words_de" works, but "psql -h localhost words_de" does not I'd try connecting the first way and seeing what "show listen_addresses" gives. Per your report it should be "*", but maybe something is overriding that. If it is "*", then it seems like something is interfering with expanding that. Maybe try explicitly setting it to "localhost"? regards, tom lane