docker run -d --name web-server  --privileged=true -v /dp/docker/file/web-server:/dp centos:centos7 /usr/sbin/init
docker exec -ti -u root web-server bash
yum install gcc gcc-c++ gcc-g77
yum -y install pcre*
yum -y install openssl*
yum -y install java-1.8.0-openjdk*
tar zxvf cronolog-1.6.2.tar.gz
yum -y  install cronie  


vi  ~/.bashrc 
追加
export LC_ALL=zh_CN.UTF-8
export LANGUAGE=zh_CN.UTF-8
export LANG=zh_CN.UTF-8
执行
localedef -c -f UTF-8 -i zh_CN zh_CN.utf8
source  ~/.bashrc
生成镜像
docker commit  web-server  web-server:v1


创建容器
docker run -d --name br-admin --restart=always --privileged=true -p1279:8080 \
-v /dp/docker/file/br-admin/dp:/dp \
-v /dp/docker/file/br-admin/crontab:/var/spool/cron/root \
-v /dp/docker/file/br-admin/rc.local:/etc/rc.d/rc.local \
-v /etc/localtime:/etc/localtime:ro \
-e TZ="Asia/Shanghai" \
web-server:v1 /usr/sbin/init