我正在构建一个基于Ubuntu 18.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吗?
发布于 2020-10-02 00:54:19
我在Dockerfile
中遇到了同样的问题,然后我在基本映像之后使用了ARG DEBIAN_FRONTEND=noninteractive
,它对我很有效:
Dockerfile示例:
FROM ubuntu
ARG DEBIAN_FRONTEND=noninteractive
发布于 2021-07-21 11:57:03
这对我很有效。
ENV TZ=Asia/Kolkata \
DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install tzdata
https://stackoverflow.com/questions/61388002
复制相似问题