I'm currently working on a project that uses the python:latest
docker image to run tests, as my project requires the use of the locales en_US.UTF-8
and nl_NL.UTF-8
I had to add them in my CI script.
However whenever I try to add them, they don't show up in my locale output (nor is my code able to use them). Does anyone know what I'm doing wrong here?
root@90a95fe4f532:/# locale -a
C
C.UTF-8
POSIX
root@90a95fe4f532:/# locale-gen en_US.UTF-8
Generating locales (this might take a while)...
Generation complete.
root@90a95fe4f532:/# locale-gen nl_NL.UTF-8
Generating locales (this might take a while)...
Generation complete.
root@90a95fe4f532:/# update-locale
root@90a95fe4f532:/# locale -a
C
C.UTF-8
POSIX
root@90a95fe4f532:/# locale-gen nl_NL.UTF-8
Generating locales (this might take a while)...
Generation complete.
root@90a95fe4f532:/# locale -a
C
C.UTF-8
POSIX
I set up my image as follows:
$ docker pull python:latest
$ docker create python:latest --name python
$ docker run -it python /bin/bash