[Docker CentOS7] CentOS7 locale language ko_KR ์„ค์ •

    ๋ฐ˜์‘ํ˜•

    docker์—์„œ centos7 ์ด๋ฏธ์ง€๋ฅผ ๋ฐ›์•„ ์ž‘์—… ์ง„ํ–‰ ์ค‘ ๋ฐœ์ƒํ•œ ์ƒํ™ฉ์— ๋Œ€ํ•œ ๊ธฐ๋ก์ด๋‹ค.

     

    1. Docker CentOS7 ์ด๋ฏธ์ง€๋ฅผ pull ๋ฐ›์•„ ์‹คํ–‰.

    2. char-set ์„ euc-kr ๋กœ ์„ค์ •ํ•ด์•ผ๋˜๋Š” ์ƒํ™ฉ ๋ฐœ์ƒ

    3. locale -a | grep ko ๋กœ ์„ธํŒ… ๊ฐ€๋Šฅํ•œ ์บ๋ฆญํ„ฐ ์…‹ ์กฐํšŒ ์‹œ ko ๊ด€๋ จ ๊ฐ’์ด ์—†์Œ.

    centos7 ์ด๋ฏธ์ง€ https://hub.docker.com/_/centos

     

    Centos - Official Image | Docker Hub

    We and third parties use cookies or similar technologies ("Cookies") as described below to collect and process personal data, such as your IP address or browser information. You can learn more about how this site uses Cookies by reading our privacy policy

    hub.docker.com

     

    ํ•ด๊ฒฐ

    - docker centos7 ์ด๋ฏธ์ง€ ๋‚ด ๊ฒฝ๋กœ ์ค‘, /etc/yum.conf ํŒŒ์ผ ๋‚ด ์•„๋ž˜ ๊ตฌ๋ฌธ ์กด์žฌ.

    override_install_langs=en_US.utf8

    ์ด ๋ผ์ธ์˜ ์˜๋ฏธ๋Š” ๊ธฐ๋ณธ์ ์œผ๋กœ ์„ค์น˜๋˜๋Š” ์–ธ์–ด ํŒฉ์„ ์ œํ•œํ•˜๋Š” ๋“ฏํ•œ ๋А๋‚Œ์„ ๋ฐ›์Œ.

    ํ•ด๋‹น ๋ผ์ธ์„ ์ฃผ์„ ์ฒ˜๋ฆฌ ํ•˜๊ณ  ์•„๋ž˜ ๋ผ์ธ์„ ์‹คํ–‰.

     # ์žฌ์„ค์น˜
     yum reinstall glibc-common

    ๊ทธ๋Ÿฌ๋ฉด ๊ธฐ๋ณธ์ ์œผ๋กœ ๋Œ€๋ถ€๋ถ„์˜ ์–ธ์–ดํŒฉ์ด ์ž๋™์œผ๋กœ ๊น”๋ฆฌ๋ฉฐ, ko_KR.utf8 ๊ณผ ko_KR.eucKR ๋˜ํ•œ ํฌํ•จ๋œ๋‹ค.

     

    ์ฐธ์กฐ > https://serverfault.com/questions/616790/how-to-add-language-support-on-centos-7-on-docker

     

    How to add language support on CentOS 7 (on Docker)?

    I'm trying to set locale to Japanese, but CentOS image on docker doesn't include language support. bash-4.2# yum groupinstall -y "Japanese Support" Loaded plugins: fastestmirror Loading mirror spe...

    serverfault.com

     

    728x90
    ๋ฐ˜์‘ํ˜•

    ๋Œ“๊ธ€