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 1tI4vi-00ByDL-M4 for pgsql-general@arkaria.postgresql.org; Mon, 02 Dec 2024 11:49:30 +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 1tI4vg-00Gmxp-7N for pgsql-general@arkaria.postgresql.org; Mon, 02 Dec 2024 11:49:29 +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 1tI4vf-00Gmxg-Sv for pgsql-general@lists.postgresql.org; Mon, 02 Dec 2024 11:49:29 +0000 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tI4ve-000dtJ-LX for pgsql-general@lists.postgresql.org; Mon, 02 Dec 2024 11:49:27 +0000 Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-5d0be79e7e7so3458084a12.0 for ; Mon, 02 Dec 2024 03:49:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733140165; x=1733744965; darn=lists.postgresql.org; h=cc:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=iQOy0ATR7iJ7Z8tI8BA9M/LgTg/ZVB4AHBCNBmWlDRU=; b=TVer+V1Vt5GC372PwrGd1PVPkbV3d0QnwAzgFvZSNRHzvfMHkGiFs6dNrkOwK2052N hj3x89QmplupnyWYHFSocVVVvNitWUTV5DQQPFJmuSJ3O0X4HI2p01lF8uPzsTT9R1Wb kb2Njj3O3x/cinPW0WLJNiTafXvkewK0d+OYU4B8xr6PJ2Xuvgr3Y/YuVNXa15BSmiok NGvmBCg/MSbFAtKHXcupGw1AQZpdzkFtgeg2PpIKnEifQD8FDEU9XI7Tm0rrEpQDGxZh ki5OiF4TD/o57KxuVmZ6dMmwXlPKYt0aG+8iuTXLR4XGdHTYF63TJgoUys9NzMHqGRiN h5Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733140165; x=1733744965; h=cc:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=iQOy0ATR7iJ7Z8tI8BA9M/LgTg/ZVB4AHBCNBmWlDRU=; b=DQfq5ul+9vDxQF/dOZG+iEeGiiOc/7yFHYVbnrNdAI+SBeTAS7YxlF8ErHPgsp4m+E aY90XQckEJ8QRevMQb3F00U7BF5B4RyOKhdo1fYY9VgM/sE35Ggf2TrOWQr/pqJJanU/ 546nqdUO/yvufmkmmcGUDi6ZnYewSlMsc+1gW2AxLeAtns/17oCWmZZEFN7j6AZzkaA1 yxmqAxqjHqeeMF4PPWehQ786VzkOCEALbhY5d4Sx8WSnz/tAfC1msGedRreyy7RBeQ4W zCKSZU8UwtKVeq1f5HAPPSO3E1q5DkNTSVMhUDdivLig1H7KyKLllckld6RXWIcar0jJ tVNw== X-Gm-Message-State: AOJu0YyKzFeP2GJEIEtqa7cQ+XmiCmTID8FDidcPtN37a7kkmVwypN2L NQYU2ugKLbcZgV1NnYJtXv6legllz5Ba8ed7Rr/TiHG93sHwdBNV6fT4NRhyd+fPbh3G47Vzk4x Rm1nZONdo8D8L4OWd4SCsDunE/MYo3w== X-Gm-Gg: ASbGnctevaLSkT5LvBgEIjcghIKhtnVCqXQiZAl1zml3g5fN1H+7ZJeFl9PiheL1vGA 8IaDBsXtTeaXgkjzXfs7Dw9qNQHdaHb7/0A== X-Google-Smtp-Source: AGHT+IF/+5+4K/9YnoubDPRTkZB/vkN1XzMO0+J3GrshzTlsZrP0YQVHNG+Q/DyHlpalYwZw0KV8gFVzpP2X737IZwc= X-Received: by 2002:a05:6402:528d:b0:5d0:d34a:514 with SMTP id 4fb4d7f45d1cf-5d0d34a0972mr7625778a12.21.1733140165127; Mon, 02 Dec 2024 03:49:25 -0800 (PST) MIME-Version: 1.0 References: <1454490.1733083127@sss.pgh.pa.us> In-Reply-To: From: Alexander Farber Date: Mon, 2 Dec 2024 12:49:13 +0100 Message-ID: Subject: Re: Connection to 127.0.0.1 refused in a Dockerfile based on postgres:17-alpine3.20 Cc: pgsql-general@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000e3751d06284823aa" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000e3751d06284823aa Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you Torsten, On Mon, Dec 2, 2024 at 12:32=E2=80=AFPM Torsten Krah wr= ote: > 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 > > I will try that option too! --000000000000e3751d06284823aa Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you Torsten,

O= n Mon, Dec 2, 2024 at 12:32=E2=80=AFPM Torsten Krah <krah.tm@gmail.com> wrote:
Am Sonntag, dem 01.12.2024 um 21:59 +010= 0 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/documenta= tion/use/#unix-sockets


I will t= ry that option too!
=C2=A0
--000000000000e3751d06284823aa--