Docker 如何填写用户输入的“交互命令”;“运行”;指挥部?
我只是在docker映像上尝试ubuntu:19.04,我希望在映像中安装tcl,因此我有:Docker 如何填写用户输入的“交互命令”;“运行”;指挥部?,docker,command,dockerfile,interactive,Docker,Command,Dockerfile,Interactive,我只是在docker映像上尝试ubuntu:19.04,我希望在映像中安装tcl,因此我有: RUN apt update && apt install tcl 然后它将给出一些交互式命令: Please select the geographic area in which you live. Subsequent configuration questions will narrow this down by presenting a list of cities, rep
RUN apt update && apt install tcl
然后它将给出一些交互式命令:
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
我这里有两个问题:
(1) 如果我在Docker文件中为“RUN”编写这个命令,在这里输入一个数字之后,“Docker build.”似乎被它挂起了
(2) 我希望我不必手动输入选项,我是否有办法在“运行”中输入选项以使其自动运行?您是否尝试禁用它
FROM ubuntu:19.04
ENV DEBIAN_FRONTEND noninteractive
RUN apt update && apt install -y tcl