centos7 docker镜像修改时区并增加中文支持

FROM centos:centos7.6.1810
MAINTAINER me <test123@test123.com>
LABEL Description="基于centos7.6.1810镜像,修改时区为CST,增加中文支持"
ENV TZ Asia/Shanghai
RUN  yum -y install kde-l10n-Chinese telnet && \
    yum -y reinstall glibc-common &&\
    yum clean all  && \
    localedef -c -f UTF-8 -i zh_CN zh_CN.utf8
ENV LC_ALL "zh_CN.UTF-8"

docker build -t hub.test123.com/base/centos7 .
docker push hub.test123.com/base/centos7

发表评论

您的电子邮箱地址不会被公开。

Captcha Code