Home >Operation and Maintenance >Docker >How to solve the problem that docker Chinese is not displayed

How to solve the problem that docker Chinese is not displayed

尚
Original
2020-03-24 15:58:263877browse

How to solve the problem that docker Chinese is not displayed

Docker Chinese is not displayed. This is because the Chinese language package is missing in the docker container environment. Just install the Chinese language package.

CentOS:

yum -y install kde-l10n-Chinese
yum -y reinstall glibc-common
localedef -c -f UTF-8 -i zh_CN zh_CN.utf8

Modify Dockerfile

FROM zabbix/zabbix-server-mysql 
RUN yum -y install kde-l10n-Chinese && yum -y reinstall glibc-common && localedef -c -f UTF-8 -i zh_CN zh_CN.utf8ENV LC_ALL zh_CN.utf8

For more related tutorials, please pay attention to the docker tutorial column on the PHP Chinese website.

The above is the detailed content of How to solve the problem that docker Chinese is not displayed. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn