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 1tI4eq-00BwAM-Ac for pgsql-general@arkaria.postgresql.org; Mon, 02 Dec 2024 11:32:04 +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 1tI4en-00GWNH-Hx for pgsql-general@arkaria.postgresql.org; Mon, 02 Dec 2024 11:32:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tI4en-00GWN9-65 for pgsql-general@lists.postgresql.org; Mon, 02 Dec 2024 11:32:02 +0000 Received: from mail-lj1-x22f.google.com ([2a00:1450:4864:20::22f]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tI4el-000dlA-0s for pgsql-general@lists.postgresql.org; Mon, 02 Dec 2024 11:32:01 +0000 Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2ffb3cbcbe4so41727271fa.0 for ; Mon, 02 Dec 2024 03:31:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733139118; x=1733743918; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=ALSTWog2WYGRY8t3JuoDqggPR71u44hgcWnXIoTiTqA=; b=ndIe7kQMuBngapoW7yrbOcyxumoCkbXbUg/Op8B+CegnjqAw27veYGxiJKXqq10867 hiSf0i8Io66Ecay3GnbLDl4V8w2o0kVq0CrstLGHizj93cnnCgXYsKv/1To6chL1Natz TP8e0OZTmKhXvF/IxPS8zfKrB+nR0PT1kD/yopDKFugPWyu6zpMMFIUdE8Qg0B9c01a7 Huvl5/mLI87YIW1rcZdrE0lxjX5m/rqdAal8oxaqc9BzVK/tRD6+DlpdmWgySO/RpWsa 8enpCVU6dBprL/BLw3nLKXzs7UPXG+NwhTl0uh0X3OMn9qsAG0i+pUZ+YPIWLqpj88WQ 02rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733139118; x=1733743918; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=ALSTWog2WYGRY8t3JuoDqggPR71u44hgcWnXIoTiTqA=; b=cBBh4h2KifPY17hIt3Y1wPA42bxGy/8OkR/lJIR+XwukbJ8uweS29Q7nD7hiHG+E7D tBW7kO/lqoCTWNIlUz+9VQGtxeD4+9RJdJzcdvDyKahE+s5nRETUFmCOE6dH78lAEeYB 4XgVrxaQwZ7OBGSqXA+mm/8Fu9v0/FAZ7EZ+IQ6FV/nvsGXbWsKRqoIfbW4lGZLjqj1s O0kf70r4H+MzcGyQcjWG57q8EIYybYG8dBZvPOnQG6opolYvpWdNP5uox+41RXVIYsfr R8CrQr5OrDCgOESiE5GaSLL2eIYgDzpObgOUOXLVbLo7QLJvxLC2CBHvsgE7BCh2Ia96 /A2g== X-Gm-Message-State: AOJu0YyezK+uPSIRgqHKauc2DtcwlrgL3eQv6w6Apald2j8e8CXSEQU4 xTcjmB64Gvl9QylTjwNPK/yYxaFIUsEPtXJobUWHIfAIxdwMuKsHGwtiIg== X-Gm-Gg: ASbGncsXzLq0ZBkWUByhknhCITROZKVsLFKmbeuSuAskJyq0o1ekDK8gFbxWAtXAP4s CvS7NQPReo7PLaPN8WcBZENe4bvGx9y0suEez6aI6ehpjmOBBa1xdkL5Rqu74AbvmGyng1bfiRA GvvLYGgP4hCapLR3Ji8UtG8u0IJmHpLeK7lSwUrcYRi+/i4DiOo3tLeN3NCr/WCZ70XTt/of3lz /VtzGyWSuqP2dpTp5YPb6gWye7dWzQTmsJYbvkUstbTvCIRCMmL+n3ZPyrZlQ== X-Google-Smtp-Source: AGHT+IG5/ZSeqcgjuCJpmHAv+KR7iJZE5BmTVBVmk2G4m4hlwwPVAUuFjgW9+kIXCtcQdL6jvFffhw== X-Received: by 2002:a2e:a815:0:b0:2fb:4603:da13 with SMTP id 38308e7fff4ca-2ffd61179f7mr99155301fa.39.1733139117772; Mon, 02 Dec 2024 03:31:57 -0800 (PST) Received: from ?IPv6:2a01:50a0:aa10:1a36::125? ([2a01:50a0:aa:0:185:40:248:10]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d097e8dc94sm4914412a12.60.2024.12.02.03.31.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Dec 2024 03:31:57 -0800 (PST) Message-ID: Subject: Re: Connection to 127.0.0.1 refused in a Dockerfile based on postgres:17-alpine3.20 From: Torsten Krah To: pgsql-general@lists.postgresql.org Date: Mon, 02 Dec 2024 12:31:56 +0100 In-Reply-To: References: <1454490.1733083127@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu2 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Am Sonntag, dem 01.12.2024 um 21:59 +0100 schrieb Alexander Farber: > But I am yet not sure how to enable listening at localhost again Instead of using a TCP/IP connection, why not use the unix socket to connect to your database [1]? [1] https://jdbc.postgresql.org/documentation/use/#unix-sockets