zoukankan      html  css  js  c++  java
  • docker ubuntu 不选时区

    在用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
  • 相关阅读:
    从零开始~
    SVN
    了解下几个证书~~
    重要的技术发展趋势
    求职路上英语面试试题问答大全
    C语言比java重要吗?
    开源solr搜索服务器配置
    全文索引 与 Like 的实现原理
    nginx搭建多个站点
    .Solr构建索引查询索引
  • 原文地址:https://www.cnblogs.com/tl542475736/p/9645920.html
Copyright © 2011-2022 走看看