docke容器与本地时差8个小时

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/woshimeihuo/article/details/89015257

dockerfile设置

之前找半天,没找到dockerfile在哪里,真是傻的很,然后请教了我们架构。

dockerfile位置,项目docker文件夹目录下

在这里插入图片描述
在文件中添加,然后提交代码,重启即可

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/woshimeihuo/article/details/89015257