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 1tHquQ-00AHCB-68 for pgsql-general@arkaria.postgresql.org; Sun, 01 Dec 2024 20:51:14 +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 1tHquN-00AYJN-3l for pgsql-general@arkaria.postgresql.org; Sun, 01 Dec 2024 20:51:12 +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 1tHquM-00AYJE-OS for pgsql-general@lists.postgresql.org; Sun, 01 Dec 2024 20:51:11 +0000 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tHquH-000XCi-EQ for pgsql-general@postgresql.org; Sun, 01 Dec 2024 20:51:10 +0000 Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-aa535eed875so587762766b.3 for ; Sun, 01 Dec 2024 12:51:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733086264; x=1733691064; darn=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=HUzMlpmUd99f4MPVXTpi5k5pRi5z4C0hxslJ4dwVvAA=; b=IFArld+/PUZs43GMz54QZoRK/QUp23BnPrlHCkmqp3KT/cPjnmDvd5OF+fld1/cZCA hTMX0kExUwhvmlwvQqm9JsGsDwMpJWjgQ/in4/wo+rF2cdu0V5dO8nIgNCZk7drYvJkG 5MtxYbU/uT0qCdNKHZ226uglT/KDbAVu5IZWZGEABXuKeG7uiQU6azuVzGflHsf0BTh4 V2jJS+w/4vobww7u0jTBqCCIoClHDvdTD0nuS6qWMs4tGkPIpGXJ/i6pCfuOfnAu/pEH 8RdXy6aVkUjja92vnsfEs6HM3dliMx9JnuqeRwEHE7L0o0e8ejjOwG4/awwChXNiI/ww MSDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733086264; x=1733691064; 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=HUzMlpmUd99f4MPVXTpi5k5pRi5z4C0hxslJ4dwVvAA=; b=lgF3uVQQ+N51U43pWKmNJLs3dtwhGft1Wtc9sgMWXfusXN62Xu8o8lPbjGJ8RcpOC+ PQup2FpMfsWFQZUtR3zG+45/As7L3RDP0uy4JQOgHPp86O69ZVWk/YoYngmXrAjMK7SM Gpf/V28QfL8QqQMDrDUNxoIcmOzHAxKknzOKUlycGzxgPoNIaHqGnBGKEtkCoLK2aDMZ 2xRj5410x+x54q80rAO4dDlkhRqgM+WZM2FzJK5B6zKc3YE4PG7h4bpwGowZmc3xiZa1 2Mku27u1TYQGEa+leHzskt5u6yqYjl4dPUx7fWXVWApcqH5Ej62E6Hc8C+kIWOOUw09i mhWQ== X-Gm-Message-State: AOJu0Yz1DAUAc34AC9l+gSt9B7WHG+T0V0xFnnF+BUB833DbL5UV7aAW ju5sEuUR417NeEopL9OqjYr3w7RCEbs9AZtbw78MzoaskYKu5j6Ec5frI3D5s6pjpGHdjiWSJul 3q1LSAEtvH9y3TpeR2CmYKQbY9YR/+60m X-Gm-Gg: ASbGncvRCfL2g47as7OzXJEdEBowgubXhzbbBJ/LSyYrkGkzjjG2KW/RtFee45OtmDA wSgI+4pFS6FDgpoyVLoRREXDu2U6w4eNbNtJKfnux/HIOXc8HEOYPm5uy5BbEK3ukVg== X-Google-Smtp-Source: AGHT+IEcUougPF1pfbQzP7uicmC07J4lwxjtwd7VhHjJJxsuaqGIVmM0qz1rjQWP2fnKuNSs0QOkZZ+a/+1Jk4R8uis= X-Received: by 2002:a17:906:8a48:b0:aa5:451c:ce21 with SMTP id a640c23a62f3a-aa581054a20mr1520349366b.40.1733086263592; Sun, 01 Dec 2024 12:51:03 -0800 (PST) MIME-Version: 1.0 References: <1454490.1733083127@sss.pgh.pa.us> In-Reply-To: From: Alexander Farber Date: Sun, 1 Dec 2024 21:50:52 +0100 Message-ID: Subject: Re: Connection to 127.0.0.1 refused in a Dockerfile based on postgres:17-alpine3.20 Cc: pgsql-general Content-Type: multipart/alternative; boundary="0000000000001b4dfe06283b971e" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000001b4dfe06283b971e Content-Type: text/plain; charset="UTF-8" I have tried changing the line in the Dockerfile, but it has not helped yet: ENV POSTGRES_INITDB_ARGS "--set port=6432 --set max_connections=20 --set max_wal_size=2GB --set listen_addresses=localhost" ENV POSTGRES_INITDB_ARGS "--set port=6432 --set max_connections=20 --set max_wal_size=2GB --set listen_addresses='localhost'" Maybe the quotes get lost somehow when using the "--set" option? $ grep listen $PGDATA/postgresql.conf listen_addresses = localhost --0000000000001b4dfe06283b971e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have = tried changing the line in the Dockerfile, but it has not helped yet:
<= br>
ENV POSTGRES_INITDB_ARGS "--set port=3D6432 --set m= ax_connections=3D20 --set max_wal_size=3D2GB --set listen_addresses=3Dlocal= host"

ENV POSTGRES_INITDB_ARGS "--set port=3D6432 --s= et max_connections=3D20 --set max_wal_size=3D2GB --set listen_addresses=3D&= #39;localhost'"

Maybe the quotes get lost somehow when usin= g the "--set" option?

$ grep listen $PGDATA/postgresq= l.conf
listen_addresses =3D localhost



--0000000000001b4dfe06283b971e--