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

来源:互联网 发布:定制音乐盒淘宝 编辑:程序博客网 时间:2024/05/16 05:06

错误信息

debconf: unable to initialize frontend: Dialogdebconf: (TERM is not set, so the dialog frontend is not usable.)debconf: falling back to frontend: Readlinedebconf: unable to initialize frontend: Readlinedebconf: (This frontend requires a controlling tty.)debconf: falling back to frontend: Teletypedpkg-preconfigure: unable to re-open stdin: 

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

在docker file中增加一句:

ENV DEBIAN_FRONTEND noninteractive
原创粉丝点击