How to set the default locale in UBI 8 images ?

Solution Verified - Updated -

Issue

  • How to set the default locale as en_US.utf8 in UBI 8 minimal image ?
  • The default locale for UBI 8 minimal image is set as C.utf8. How to change the default locale to en_US.utf8 ?
  • locale command is returning the C.utf8 in the UBI 8 image. How to change the locale to en_US.utf8?

Environment

  • Red Hat Enterprise Linux (RHEL) 8
  • ubi8
  • ubi8/ubi-minimal

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content