在Docker构建过程中如何避免问题?

在Docker构建过程中如何避免问题?,docker,ubuntu,dockerfile,Docker,Ubuntu,Dockerfile,我正在构建一个基于Ubuntu18.04的Docker镜像。 正在生成,但在完成之前,我在Powershell控制台中收到: Configuring tzdata ------------------ Please select the geographic area in which you live. Subsequent configuration questions will narrow this down by presenting a list of cities, represe

我正在构建一个基于Ubuntu18.04的Docker镜像。 正在生成,但在完成之前,我在Powershell控制台中收到:

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        6. Asia            11. System V timezones
  2. America       7. Atlantic Ocean  12. US
  3. Antarctica    8. Europe          13. None of the above
  4. Australia     9. Indian Ocean
  5. Arctic Ocean  10. Pacific Ocean
Geographic area:
----

据我所知,它等待我的回答,但我不能输入任何数字,即键盘上没有反应。如何避免这个问题?是否可以在dockerfile中添加CMD?

我在dockerfile中遇到同样的问题,然后我使用了
ARG DEBIAN_FRONTEND=noninteractive
在基本映像之后,它适用于我:

Dockerfile示例:

FROM ubuntu
ARG DEBIAN_FRONTEND=noninteractive

Dockerfile看起来像什么?您尝试过使用不同的shell吗?我已经复制/粘贴了dockerfileTry,在
apt get
语句之前添加
DEBIAN_FRONTEND=noninteractive
,Sok将尝试让您知道…让我知道,如果解决了问题,我将在上分享答案