docker
Docker (혹은 Linux) 한글경로 깨짐 문제
Hongma
2022. 3. 8. 11:17
linux에서 한글 경로가 깨진다면 현재 프로그램의 인코딩 형식을 봐야 합니다.
1. 현재 인코딩 설정 확인
echo $LANG
2. locale 설치
sudo apt-get install language-pack-ko
3. 환경변수 설정
export LANGUAGE=ko_KR.UTF-8
export LANG=ko_KR.UTF-8
4. locale update
locale-gen ko_KR ko_KR.UTF-8
update-locale LANG=ko_KR.UTF-8
5. loacle 설정
dpkg-reconfigure locales
Enter 누르면서 "ko_KR.UTF-8 UTF-8" 의 번호를 확인해서 설치하면 됩니다. (현재는 298 : ko_KR.UTF-8 UTF-8)
마지막에 3번으로 기본 locale 설정 완료.
* dockerfile 자체를 변경시키고 싶다면 아래 주소 참조