Re: Running psql in a docker container - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Running psql in a docker container
Date
Msg-id 97d1dbfd-6e7b-4019-828f-489ccd6e7eae@aklaver.com
Whole thread Raw
In response to Running psql in a docker container  (H <agents@meddatainc.com>)
Responses Re: Running psql in a docker container
List pgsql-general
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.
Ihave now upgraded that system to Rocky Linux 9 as the host operating system and modifying my container to also use
RockyLinux 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
initdbstatement 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




pgsql-general by date:

Previous
From: PetSerAl
Date:
Subject: Re: Postgresql range_agg() Return empty list
Next
From: Dimitrios Apostolou
Date:
Subject: Re: Query on partitioned table needs memory n_partitions * work_mem