nginx as a static file server
docker jenkins image with Android SDK
docker-jenkins-android/README.md
docker nginx image based on alpine
file upload/download based on openresty
Docker 时区问题
-
启动时指定时区
docker run -e TZ=Asia/Shanghai nginx
-
改变镜像或容器时区
- alpine
# timezone
ENV TZ=Asia/Shanghai
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \
&& apk update && apk add ca-certificates \
&& apk add tzdata \
&& ln -sf /usr/share/zoneinfo/$TZ /etc/localtime \
&& echo $TZ > /etc/timezone \
- Ubuntu
# timezone
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
&& apt-get install tzdata \
&& dpkg-reconfigure --frontend noninteractive tzdata
其他时区?
默认是Asia/Shanghai
使用timezone.sh
一键修改项目中的时区为本机时区
./timezone.sh