【问题标题】:What's this error about while adding postgis in docker在docker中添加postgis时这个错误是什么
【发布时间】:2019-05-31 07:02:39
【问题描述】:

我的 Dockerfile 的一部分是:

RUN apt-get install -yqq software-properties-common
RUN add-apt-repository ppa:ubuntugis/ppa && apt-get update -yqq
RUN apt-get install -yqq gdal-bin
RUN apt-get install -yqq postgis

我安装了 postgis repo,然后安装了 postgis,但是当它到达 postgis 的安装步骤时,我在屏幕上得到这个提示并且它卡在那里。

debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Configuring tzdata
------------------

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:

有人知道吗?

【问题讨论】:

    标签: django docker dockerfile postgis


    【解决方案1】:

    在安装 postgis 时使用RUN DEBIAN_FRONTEND=noninteractive apt-get install -yqq postgis 来抑制对话框,或者使用ARG DEBIAN_FRONTEND=noninteractive 也不会持久化到容器但仍然具有相同的效果。

    也许也指https://github.com/docker/docker/issues/4032

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-11-25
      • 2011-05-23
      • 1970-01-01
      • 1970-01-01
      • 2022-10-23
      相关资源
      最近更新 更多