您的位置:首页 > 运维架构 > Docker

docker制作镜像 apt-get 安装文件报错debconf: unable to initialize frontend: Dialog

2017-10-16 16:15 841 查看
错误信息

debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
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:


原因是在使用apt-get安装依赖时,可能会有对话框,制作镜像时如果不选择会导致失败,解决办法也很简单

在docker file中增加一句:

ENV DEBIAN_FRONTEND noninteractive
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐