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
  • 相关阅读:
    程序怎么才能把自己的删除掉?
    Winsock编程入门1.初始化Winsock
    关于83版射雕英雄传
    一个感人的爱情故事(中英对照)
    NT系统的命令
    Delphi小巧的Windows NT服务程序源码
    更改Windows 登录屏幕保护程序
    画鬼最易
    濮水垂钓
    现代工作观
  • 原文地址:https://www.cnblogs.com/tl542475736/p/9645920.html
Copyright © 2011-2022 走看看