1 容器镜像制作时配置

#### 1 ubuntu系统
RUN echo "Asia/shanghai" > /etc/timezone;
#### 2 centos系统
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

2 容器启动后配置

#### 1 ubuntu系统
docker exec [容器id]  echo "Asia/shanghai" > /etc/timezone;
#### 2 centos系统
docker cp /usr/share/zoneinfo/Asia/Shanghai  [容器id]:/etc/localtime