【发布时间】:2016-12-01 01:10:35
【问题描述】:
我正在通过dockerfile 在ubuntu 图像上安装mailutils。
我这样做是通过:
RUN apt-get install -y mailutils
但是,在这一行我得到以下信息:
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
当我对 Debian 映像执行完全相同的操作时,我没有获得此选项。
在使用Dockerfile 时,我使用-y 前缀来处理所有是/否安装问题。我该如何处理这样的选项?我已尝试添加 -2 前缀。
有没有办法跳过这个?为什么ubuntu 需要这个而debian 不需要?尽管不需要此输入,但我已检查并使用 debian 正常运行邮件。
【问题讨论】:
标签: linux ubuntu docker smtp dockerfile