用dockerfile創建ubuntu16.04,官網源
ubuntu安裝完成,執行dockerfile后續命令。
到這一步,
dockerfile中代碼:
RUN apt-get install -y dovecot-imapd dovecot-pop3d postfix
終端運行dovecot安裝完,postfix安裝時出現選擇項:
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:
上面我選了2,然后就沒有任何動靜了。。。。。
網上有說用apt-get install -y -o Option::="2" postfix 實驗無果.
怎樣才能自動選擇呢?
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/69060.html
標籤:Docker
