When connecting to a docker instance on the command line using docker exec <container name> bash
whenever I enter non-ascii characters such as ø
, å
or æ
my command line freaks out and displays (arg: 8)
.
Docker will insist on escaping file names containing these characters when using ls
.
Docker will however display the contents of files containing these characters without escaping.
How do I make docker consistently accept these characters on the command line without escaping?
2
Answers
I needed to set
in
docker-compose.yml
First of all you need to set the locale inside the Docker container to support UTF-8 characters like this
and then rebuild the Docker image using the updated Dockerfile!
now run new container using the updated image like below