Dockerfile 执行 apt-get install 遇到会弹出窗口的程序……

2017-06-11 02:55:16 +08:00
 phithon

docker 容器( ubuntu16.04 )里执行如下代码

apt-get update && apt-get install -y krb5-user

在安装krb5-*的时候,会弹出要求我填写Default Kerberos version 5 realm的提示:

...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Configuring Kerberos Authentication
-----------------------------------

When users attempt to use Kerberos and specify a principal or user name without specifying what administrative Kerberos realm that principal belongs to, the system appends the
default realm.  The default realm may also be used as the realm of a Kerberos service running on the local machine.  Often, the default realm is the uppercase version of the
local DNS domain.

Default Kerberos version 5 realm:

然后这里就中断了…… Dockerfile 没法自动编译……

这种情况怎么办? apt-get 加了-y,也不行……

5164 次点击
所在节点    Docker
2 条回复
zeyexe
2017-06-11 03:08:44 +08:00
你需要先去了解下 debconf 静默安装
phithon
2017-06-11 03:12:46 +08:00
@zeyexe 要的就是你这个关键字……感谢!

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/367549

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX