FROM centos:latest
MAINTAINER hush <zhaoshuo@dafy.com>
#Setting Time
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
#Setting character
RUN yum -y install kde-l10n-Chinese telnet && yum -y reinstall glibc-common && localedef -c -f UTF-8 -i zh_CN zh_CN.utf8
ENV LC_ALL "zh_CN.UTF-8"
RUN echo "export LC_ALL=zh_CN.utf8" >> /etc/profile
#Setup Toolkit
RUN yum -y install net-tools lsof less curl bind-utils lrzsz && yum clean all
备注:
- 1.基础镜像官方centos:latest
- 2.时间同步问题解决使用宿主机时间
- 3.中文字符乱码问题解决安装中文包,并配置变量
- 4.基础工具包安装lrzsz lsof net-tools bind-utils telnet