Skip to content

Instantly share code, notes, and snippets.

@mapk0y
Created March 5, 2017 17:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mapk0y/315933e0b6a2d71cefe937433eeb5bd4 to your computer and use it in GitHub Desktop.
Save mapk0y/315933e0b6a2d71cefe937433eeb5bd4 to your computer and use it in GitHub Desktop.
docker で xfce4
FROM ubuntu:latest
ENV DEBIAN_FRONTEND noninteractive
RUN set -ex \
&& apt-get update \
&& apt-get install -y --no-install-recommends xfce4 \
&& apt-get clean \
&& rm -rf /var/lib/apt/*
@mapk0y
Copy link
Author

mapk0y commented Mar 5, 2017

DEBIAN_FRONTEND を指定しない場合は以下のようなメッセージが出るがインストールは正常に完了する

 ~~snip~~
Setting up ucf (3.0036) ...
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.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /
usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /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
 ~~snop~~
Setting up x11-common (1:7.7+13ubuntu3) ...
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: (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.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /
usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /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
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
 ~~snip~~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment