gpt4 book ai didi

ubuntu - debconf 警告尽管 DEBIAN_FRONTEND 在 Docker 镜像中

转载 作者:太空宇宙 更新时间:2023-11-03 17:10:27 26 4
gpt4 key购买 nike

我有非常简单的 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 构建期间看到以下消息

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

每次都会出现警告消息。

最佳答案

不建议持久设置 DEBIAN_FRONTEND [ 1 ],[ 2 ]

使用此 Dockerfile 消除警告:

FROM ubuntu:14.04
MAINTAINER XXX <xxx@yyy.zzz>
RUN apt-get -y update && DEBIAN_FRONTEND=noninteractive apt-get -y install apache2-utils

关于ubuntu - debconf 警告尽管 DEBIAN_FRONTEND 在 Docker 镜像中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39242256/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com