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

Release: 2020-03-24 15:58:26
Original
3872 people have browsed it

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
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template