小编Ben*_*rds的帖子

在 docker-compose 构建期间无法停止 tzdata 要求用户输入

我尝试了几件事,包括

ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Lnndon
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
Run Code Online (Sandbox Code Playgroud)

但无论我做什么我都会得到

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:
Run Code Online (Sandbox Code Playgroud)

并且用户输入不起作用(我真的希望这是非交互式的)。

这是完整的 …

ubuntu docker docker-compose

7
推荐指数
1
解决办法
3091
查看次数

标签 统计

docker ×1

docker-compose ×1

ubuntu ×1