能源采矿Docker故障诊断

dockerfile创建ubuntu,postfix配置选择时停止

用dockerfile创建ubuntu16.04,官网源ubuntu安装完成,执行dockerfile后续命令。到这一步,dockerfile中代码:[code class="lang-python" lang="python"]RUN apt-get install -y dovecot-imapd dovecot-pop3d postfix[/code]终端运行dovecot安装完,postfix安装时出现选择项:[code...显示全部

用dockerfile创建ubuntu16.04,官网源

ubuntu安装完成,执行dockerfile后续命令。

到这一步,

dockerfile中代码:

[code class="lang-python" lang="python"]RUN apt-get install -y dovecot-imapd dovecot-pop3d postfix
[/code]

终端运行dovecot安装完,postfix安装时出现选择项:

[code class=""]Selecting previously unselected package postfix.
Preparing to unpack .../postfix_3.1.0-3_amd64.deb ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Postfix Configuration
---------------------

Please select the mail server configuration type that best meets your needs.

No configuration:
  Should be chosen to leave the current configuration unchanged.
Internet site:
  Mail is sent and received directly using SMTP.
Internet with smarthost:
  Mail is received directly using SMTP or by running a utility such
  as fetchmail. Outgoing mail is sent using a smarthost.
Satellite system:
  All mail is sent to another machine, called a 'smarthost', for delivery.
Local only:
  The only delivered mail is the mail for local users. There is no network.

  1. No configuration  3. Internet with smarthost  5. Local only
  2. Internet Site     4. Satellite system
General type of mail configuration:
[/code]

上面我选了2,然后就没有任何动静了。。。。。

网上有说用apt-get install -y -o Option::="2" postfix 实验无果.

收起
参与3

返回DotJin的回答

DotJinDotJinCIOzbc

更新到最新版自动选择还是不行,问题保留,已通过docker万能c/r方法绕过,镜像已push到aliyun。

能源采矿 · 2017-01-25
浏览2646

回答者

DotJin
CIOzbc
擅长领域: 容器引擎服务器云计算

回答状态

  • 发布时间:2017-01-25
  • 关注会员:1 人
  • 回答浏览:2646
  • X社区推广