docker build时出现错误"debconf: unable to initialize frontend: Dialog"如何处理?
2023-09-11 14:16:47 时间
1. 详细日志如下:
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:
2. 修复示例如下:
修改Dockerfile文件,
FROM ubuntu ARG DEBIAN_FRONTEND=noninteractive RUN apt-get update && \ apt-get -y install sudo dialog apt-utils RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
相关文章
- 使用Docker运行locust
- 【Docker】docker安装GitLab
- 【Docker】iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 8480 -j DNAT --to-destination 172.17.0.2:80 ! -i docker0: iptables: No chain/target/match by that name
- 使用 Docker 环境来开发 PHP,Laradock 系列 1
- Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
- MacOS Docker 安装
- Docker - 构建镜像:使用docker commit命令
- Docker 入门docker compose请看这篇文章
- Docker的三种网络代理配置:dockerd pull镜像代理;容器docker run网络代理;docker build代理--build-arg
- docker 每次都得source /etc/profile以及如何查看Docker容器环境变量、向容器传递环境变量
- docker运行redis:windows环境运行挂载目录的正确写法、-v挂载data目录、-v挂载redis.conf配置文件以及设置访问密码
- Docker镜像上传至私有仓库
- 79.第十七章 企业级容器技术docker -- Docker 镜像制作和管理、Docker 数据管理(七)
- 【云原生之Docker实战】使用docker部署nginx服务
- 【云原生之Docker实战】使用Docker部署Focalboard项目管理工具
- 【云原生 • Docker】docker 环境搭建、docker 与容器常用指令大全
- Docker----如何更改docker镜像的存储路径
- 通过 docker-compose 快速部署 Hadoop 集群极简教程
- Docker 的4种网络模式
- 使用 Docker容器配置PyCharm开发环境
- 【Zabbix实战之部署篇】docker部署Zabbix+grafana监控平台
- 云原生之部署Docker可视化管理工具docker.ui