So I'm setting up a docker image with Ubuntu and Postgresql in pt_BR and I'd like to know how can I change the default locale via command line without restarting the system - which is not possible in a Docker build :).
I managed to do it in Debian by changing setting LANG,LANGUAGE and LC_* variables in /etc/default/locale
, modifying /etc/locale.gen
and running dpkg-reconfigure
, as shown here. In Ubuntu it doesn't work.
相关问题
- Docker task in Azure devops won't accept "$(pw
- Unable to run mariadb when mount volume
- Django distinct is not working
- PostgreSQL: left outer join syntax
- Unspecified error (0x80004005) while running a Doc
It should work with Ubuntu similarly.
A sample Dockerfile
Running a container from that image,
ls --help
will be presented in Portuguese.