Open carmineyiu opened 3 years ago
I'm pretty sure if you start the container with the option --env=LANG=en_US.UTF-8 and substitute the language you want then that should work. If there's more work required for language support such as installing a package then you'd be better off modifying the Dockerfile, but I'm not sure if that's something ever required...?
Ok, so it looks like you actually need to install the locales package to allow using the LANG environment var, so I’ll add that to the Dockerfile
I've just added the locales package, so you'll need to add the --env=LANG=en_US.UTF-8
option to your run command, plus run locales-gen en_US.UTF-8
with your language code substituted for en_US.UTF-8.
try this: https://github.com/infrastlabs/docker-headless/blob/dev/_doc/mannual/b1-locale.md
docker run -it --rm -e L=zh_CN --net=host infrastlabs/docker-headless
I want to add more language/locale support to Firefox or the Ubuntu. Should I build an image myself and add the 2nd run statement. or Should I add it later to Container, which mean I need to run locale command each time I restart container?