我正在运行Docker桌面社区2.0.3。我从码头中心(hub.docker.com)运行官方的nginx和Apache服务器容器。容器映像基于Debian 9。然后,我尝试使用tasksel安装Debian标准系统实用程序。我在集装箱中打开了一个码头,使用:
docker exec -ti container_id bash我试图运行tasksel安装程序。
# tasksel install standard
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Installing packages
-------------------
..100%这些问题是:
Docker桌面安装在macOS 10.12上

发布于 2019-06-05 14:16:49
要使用tasksel,需要在容器中安装dialog;:
apt update && apt install -y dialog tasksel然后
tasksel install standard将正常工作,与通常的界面。
您不需要传递TERM变量。
许多标准实用程序在容器中没有多大用处,但是如果要这样做,我将使用aptitude而不是tasksel:
apt update && apt install -y aptitude && \
aptitude install -y ~pstandard ~prequired ~pimportant发布于 2019-06-05 14:02:33
ncurses需要以下命令:https://stackoverflow.com/a/38774123/3341782不确定是否有更好的解决方案。
https://unix.stackexchange.com/questions/523050
复制相似问题