docker报错:debconf: unable to initialize frontend: Dialog
使用docker制作镜像过程中,在 apt-get 安装命令时,出现错误:debconf: unable to initialize frontend: Dialogdebconf: (TERM is not set, so the dialog frontend is not usable.)debconf: falling back to frontend: Readlinedeb...
·
使用docker制作镜像过程中,在 apt-get 安装命令时,出现错误:
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安装依赖时,可能会有对话框,制作镜像时如果不选择会导致失败。
解决方案:在Dockerfile中增加一句:
ENV DEBIAN_FRONTEND noninteractive
更多推荐
已为社区贡献6条内容
所有评论(0)