Задать вопрос
  • Как в docker контейнер установить русские локали?

    Я воспользовался этим решением для добавления русской локали в докер bitnami/moodle ( если точно bitnami/moodle:4.5.1-debian-12-r0 )

    FROM bitnami/moodle:4.5.1-debian-12-r0
    
    # Install Russian locales
    RUN apt-get update && \
        apt-get install -y locales && \
        echo "ru_RU.UTF-8 UTF-8" >> /etc/locale.gen && \
        locale-gen && \
        update-locale LANG=ru_RU.UTF-8
    
    ENV LANG=ru_RU.UTF-8 \
        LANGUAGE=ru_RU:ru \
        LC_ALL=ru_RU.UTF-8


    После этого ru_RU есть! Спасибо!

    C:\Users\sungr>docker run --rm -ti moodleru locale -a
    moodle 16:46:32.06 INFO  ==>
    moodle 16:46:32.06 INFO  ==> Welcome to the Bitnami moodle container
    moodle 16:46:32.06 INFO  ==> Subscribe to project updates by watching https://github.com/bitnami/containers
    moodle 16:46:32.06 INFO  ==> Submit issues and feature requests at https://github.com/bitnami/containers/issues
    moodle 16:46:32.06 INFO  ==> Upgrade to Tanzu Application Catalog for production environments to access custom-configured and pre-packaged software components. Gain enhanced features, including Software Bill of Materials (SBOM), CVE scan result reports, and VEX documents. To learn more, visit https://bitnami.com/enterprise
    moodle 16:46:32.07 INFO  ==>
    
    C
    C.utf8
    en_AU.utf8
    en_US.utf8
    POSIX
    ru_RU.utf8
    Написано