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 1sRvTQ-0025t9-2Z for pgsql-general@arkaria.postgresql.org; Thu, 11 Jul 2024 15:12:44 +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 1sRvTO-00F8lr-6t for pgsql-general@arkaria.postgresql.org; Thu, 11 Jul 2024 15:12:42 +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 1sRvTM-00F8ke-IK for pgsql-general@lists.postgresql.org; Thu, 11 Jul 2024 15:12:41 +0000 Received: from fhigh4-smtp.messagingengine.com ([103.168.172.155]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sRvTI-001ZpA-UE for pgsql-general@lists.postgresql.org; Thu, 11 Jul 2024 15:12:39 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfhigh.nyi.internal (Postfix) with ESMTP id BC3A6114743A; Thu, 11 Jul 2024 11:06:04 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 11 Jul 2024 11:06:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1720710364; x=1720796764; bh=P0VuXgz6BTWLCu3/uO2cfGMiVyD63zou+1+b3n/6PRs=; b= G4srWnPYB449DQDwcBbyj2aaUDq2/9Pz6fn5oFPZNuVm9xVpNEm5mSpaYXcpeSUc nceewAuyHIfEx+w/leEM2HslqwcLuiGZXMb9J2tAN6J/2iGqp/6eJHeJjWoGWZRb 9JVn6mhceZSBRHOAiHu9WGGUWfeu2E9leMjnGAY1n+8fZhZFaKr+4miZyjxNiiL6 GunL+HVDDq4AFD0CK1dRhnub0Rkikv2wfJ9Sk26vqFeEqoUX945Z8//Hjo3Ukz6V MzRBmh6E/3yFJjHKNQKG7/B8qxWs9KsjjejyP+zjOKqaJb6fPczj00Uuj56weLns ZJWHsCnCQvqoRHrk10KCkQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1720710364; x= 1720796764; bh=P0VuXgz6BTWLCu3/uO2cfGMiVyD63zou+1+b3n/6PRs=; b=W iqH6lBiAeUxw5i3MgRfgV9ODu9sjjdiQNL1l6YshbkWVTSexVaD4jkORiVo9enRj 1XnlLs67TD29/UPxkLshay8hyloOajlaj8DHYZg1gRcnCRWwsAptXJCGDJUIUKhM cQAnM5hK3qtvfqqXX0X83AIYoAIb3J+S3weZ8rz0stqo4kDW05jrB2pDEGSddfSE u8HthyPbRCbY9TTiJyK20RtFTyeeHkzOt5wmOmXVRY8j9HEnQADhpwlmsu9v9pI/ fAw1vJfwewTerAKgSsmm93X3o7jsjqzIKBTN+TU9ajnt9c3nW1dW1PTArCn4ljJ+ OQsGsbn83yVDyk5ZAE11A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrfeeggdekgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvfhfhjggtgfesthejre dttddvjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeeivdfhieehhe egueeileejieettdejhedugeefleekvdelkeehtdfgiefffeekudenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvg hrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 11 Jul 2024 11:06:02 -0400 (EDT) Message-ID: <97d1dbfd-6e7b-4019-828f-489ccd6e7eae@aklaver.com> Date: Thu, 11 Jul 2024 08:06:02 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Running psql in a docker container To: H , PostgreSQL Users Mailing List References: <21E2962B-6905-462C-8C12-6E9454CD26FC@meddatainc.com> Content-Language: en-US From: Adrian Klaver In-Reply-To: <21E2962B-6905-462C-8C12-6E9454CD26FC@meddatainc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 7/11/24 07:57, H wrote: > I used to successfully run psql server 13 in a CentOS 7 docker container with CentOS 7 as the host operating system. I have now upgraded that system to Rocky Linux 9 as the host operating system and modifying my container to also use Rocky Linux 9 and psql server 16. > > I can successfully get the container up and running and can connect to it. However, I have not managed to modify the initdb statement to use en_US.UTF-8 for all databases. > > In the old container I used: > > su - postgres -c "/usr/pgsql-13/bin/initdb -D /var/lib/pgsql/13/data/ -E 'UTF-8' --lc-collate='en_US.UTF-8' --lc-ctype='en_US.UTF-8'" > > but this does not work with psql 16. I tried: > > su - postgres -c "/usr/pgsql-16/bin/initdb -D /var/lib/pgsql/16/data/ -E 'UTF-8' --lc-lang='en_US'" > > and variations thereof with no success. Without a definition of what '... no success' means there is no real way to answer this. > > Any suggestions on what I have missed? > > Thank you. > > -- Adrian Klaver adrian.klaver@aklaver.com