我有非常简单的Dockerfile
FROM ubuntu:14.04
MAINTAINER XXX <xxx@yyy.zzz>
ARG DEBIAN_FRONTEND=noninteractive
RUN sudo apt-get -y update && sudo apt-get -y install apache2-utils
我在docker build
期间看到以下消息debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
我已经阅读了不同的来源,ARG DEBIAN_FRONTEND=noninteractive
应该会有所帮助,但事实并非如此。无论有没有,构建输出看起来都一样。这是正常的吗?
我的Docker版本是1.12。
更新
我也试过这个
ENV DEBIAN_FRONTEND noninteractive
和这个
RUN apt-get -y update && DEBIAN_FRONTEND=noninteractive apt-get -y install apache2-utils
每次都会出现警告消息。