티스토리 뷰
Docker Container Locale 설정 (locale.Error: unsupported locale setting)
제이스핀 2020. 3. 26. 20:26locale.Error: unsupported locale setting
Locale 설정이 제대로 되어있지 않아서 생기는 에러,
해결 방법은 간단하다.
* locale.Error: unsupported locale setting 에러 해결 방법
-------------------------------------------------------------
(설정은 아래 두 방법을 해보면 아마 대부분 해결 될 것이다)
1) C는 default Language로 설정하는 방법
$ export LC_ALL=C
2) 1)로 해결이 안될 때, 직접 설정해준다.
$ export LC_ALL="en_US.UTF-8"
$ export LC_CTYPE="en_US.UTF-8"
$ sudo dpkg-reconfigure locales
-------------------------------------------------------------
하지만
Docker Container 가 실행되어 attach한 상황에서는 LC_ALL 에 대한 설정이 위와 같은 방법으로 되지 않는다.
(있는지는 모르겠지만 찾지 못했다...)
VS Code로 Container에 Attach하여 디버깅을 진행할 때
이 에러 때문에 디버깅이 진행되지 않는 경우가 종종 있다.
따라서 간단하게 해결하는 방법은, Container를 다시 만들되, run 옵션에 locale을 추가하는 것.
-e 옵션으로 아래와 같이 넣어주면 해결된다.
* Docker Locale 설정하여 run 하는 방법
docker run ~~~~~~ -e LC_ALL=C.UTF-8 ~~~~~~~~
'envs > Docker' 카테고리의 다른 글
Docker 권한 문제 해결 (sudo 안 써도 되게끔) (0) | 2024.02.01 |
---|---|
VSCode + Docker 로 개발환경 세팅 (0) | 2019.11.07 |
Docker run 옵션 정리 (0) | 2019.11.06 |
Docker 기본 명령어 정리 (0) | 2019.10.25 |
Docker : Got permission denied while trying to connect to the Docker... (0) | 2019.10.24 |
- Total
- Today
- Yesterday
- Deep Learning
- Macbook
- MySQL
- Object Detection
- Python
- Anaconda
- nerf
- GaussianSplatting
- MacOS
- nginx
- error
- Neural Radiance Field
- 3Dvision
- CUDA
- git
- numpy
- Computer Vision
- nvidia
- Novel View Synthesis
- GPU
- Android
- 우분투
- vscode
- ubuntu
- java
- 2-stage Detector
- SSH
- Docker
- Machine Learning
- pytorch
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |