首页 > 系统服务 > 详细

docker ubuntu 不选时区

时间:2018-09-14 13:30:48      阅读:311      评论:0      收藏:0      [点我收藏+]

在用ubuntu:18.04基本镜像进行构建的时候。出现啦选择时区的地方,然后会卡住。

FROM ubuntu:18.04
#env 环境变量
ENV AUTHOR="xianyunyehe" PWD="." 
#复制源
COPY ${PWD}/sources.list /etc/apt/sources.list
#容器启动执行的脚本程序
#CMD [ "" ]
#定义挂载的卷
VOLUME [ "/tmp" ]
#对外暴露的端口
EXPOSE 8080
#工作目录 构建的每层操作都在该目录下进行
WORKDIR /tmp
#指定用户
USER root

# 当以当前镜像为基础镜像,去构建下一级镜像的时候才会被执行
#
#RUN mkdir /app
#WORKDIR /app
#ONBUILD COPY ./package.json /app
#ONBUILD RUN [ "npm", "install" ]

#执行命令
RUN buildDeps=gcc libc6-dev make     && apt-get update     && apt-get install -y $buildDeps     && apt-get install -y php     && apt-get purge -y --auto-remove $buildDeps
Please select the geographic area in which you live. Subsequent configuration
questions will narrow this down by presenting a list of cities, representing
the time zones in which they are located.

  1. Africa      4. Australia  7. Atlantic  10. Pacific  13. Etc
  2. America     5. Arctic     8. Europe    11. SystemV
  3. Antarctica  6. Asia       9. Indian    12. US
Geographic area:

可以通过配置环境变量,来跳过这个步骤

ENV DEBIAN_FRONTEND=noninteractive

docker ubuntu 不选时区

原文:https://www.cnblogs.com/tl542475736/p/9645920.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!