title: How to prevent distorting Cyrillic text in bash running in a Docker container?
body: <p>I have set following locale settings in my Dockerfile:</p>
  
  <pre><code># Set the russian locale
  RUN apt-get clean &amp;&amp; apt-get update &amp;&amp; apt-get install -y locales
  RUN locale-gen ru_RU.UTF-8
  ENV LANG ru_RU.UTF-8
  ENV LANGUAGE ru_RU.UTF-8
  ENV LC_ALL ru_RU.UTF-8
  </code></pre>
  
  <p>It seems that locale does not set correctly:</p>
  
  <pre><code>root@4fcfdd39679c:/front-office# locale 
  locale: Cannot set LC_CTYPE to default locale: No such file or directory
  locale: Cannot set LC_MESSAGES to default locale: No such file or directory
  locale: Cannot set LC_ALL to default locale: No such file or directory
  LANG=ru_RU.UTF-8
  LANGUAGE=ru_RU.UTF-8
  LC_CTYPE="ru_RU.UTF-8"
  LC_NUMERIC="ru_RU.UTF-8"
  LC_TIME="ru_RU.UTF-8"
  LC_COLLATE="ru_RU.UTF-8"
  LC_MONETARY="ru_RU.UTF-8"
  LC_MESSAGES="ru_RU.UTF-8"
  LC_PAPER="ru_RU.UTF-8"
  LC_NAME="ru_RU.UTF-8"
  LC_ADDRESS="ru_RU.UTF-8"
  LC_TELEPHONE="ru_RU.UTF-8"
  LC_MEASUREMENT="ru_RU.UTF-8"
  LC_IDENTIFICATION="ru_RU.UTF-8"
  LC_ALL=ru_RU.UTF-8
  root@4fcfdd39679c:/front-office#
  </code></pre>
  
  <p>but when i write text in bash (running like this: <code>docker-compose run --rm app bash</code>), there is malformed cyrillic text - it starts with char ":�" and not fully supported all russian letters. How to solve it?</p>