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
  • 相关阅读:
    结构体字节对齐
    ORACLE自增长字段实现
    Oracle 11.2.0.2新特性——用户重命名(Rename User)
    oracle expdp/impdp 用法详解
    sql语句面试题(城市人口统计) .
    ORA30553: 函数不确定!
    SQL Express自动备份 .
    SQL 2005的DES加密算法
    SQL 2005加密数据方法
    CREATE VIEW ORA01031
  • 原文地址:https://www.cnblogs.com/tl542475736/p/9645920.html
Copyright © 2011-2022 走看看