相关疑难解决方法(0)

如何为“RUN”命令填写交互式命令的用户输入?

我只是在 docker 映像上尝试 ubuntu:19.04,我希望在映像中安装 tcl,所以我有:

RUN apt update && apt install tcl
Run Code Online (Sandbox Code Playgroud)

然后它会给出一些交互命令:

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   3. Antarctica  5. Arctic  7. Atlantic  9. Indian    11. SystemV  13. Etc
2. America  4. Australia   6. Asia    8. Europe    10. Pacific  12. US
Run Code Online (Sandbox Code Playgroud)

我在这里有两个问题:

(1)如果我在Docker文件中为“RUN”写这个命令,在这里输入一个数字后,“docker build”。似乎被它所吸引。

(2) 我希望我不必手动输入选择,我有什么方法可以在“运行”中输入选择,使其自动化?

command interactive docker dockerfile

2
推荐指数
2
解决办法
3114
查看次数

标签 统计

command ×1

docker ×1

dockerfile ×1

interactive ×1