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

From Tom Lane
Subject Re: Running psql in a docker container
Date
Msg-id 2204849.1720727322@sss.pgh.pa.us
Whole thread Raw
In response to Re: Running psql in a docker container  (H <agents@meddatainc.com>)
Responses Re: Running psql in a docker container
List pgsql-general
H <agents@meddatainc.com> writes:
> Understood but how should formulate the initdb statement to accomplish what I want on pgsql 16 since the syntax I
usedfor pgsql 13 does not work in my container? 

You still haven't shown us the actual error message, so we're all
just guessing.

I will offer a guess though.  This *should* work, since Rocky 9
is a direct descendant of RHEL/CentOS 7.  The only reason I can
think why it wouldn't is that you haven't installed the OS package
that defines en_US.UTF-8.  Try doing "locale -a" and see if
en_US.UTF-8 is among the listed locales.

On my RHEL8 box, it looks like glibc-locale-source is what
provides most non-C locales.

            regards, tom lane



pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Running psql in a docker container
Next
From: H
Date:
Subject: Re: Running psql in a docker container