例如,我试图设置一个包含mail-stack-delivery包的容器:
FROM ubuntu RUN apt-get install -y mail-stack-delivery
然而,dockerfile生成几十个错误,构建时,它们的行:
debconf: unable to initialize frontend: Dialog debconf: (TERM is not set,so the dialog frontend is not usable.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7,<> line 11.) debconf: falling back to frontend: Teletype dpkg-preconfigure: unable to re-open stdin:
从我的理解,我只是简单地不能响应对话框,但有一些方法,我可以传递一个参数,以提前回答每个问题?我知道它只是改变一些配置,所以我可以做到事后,但大概最好让安装脚本做到这一切,以便一切正确设置。