Quando vou instalar o nginx no docker, esta ocorrendo o erro abaixo e o nginx não inicia. Antes eu não estava com esse problema. Voces já passaram por isso?
Segue abaixo o procedimento que eu sigo:
Versão do S.O
CentOS Linux release 7.6.1810 (Core)
Instalação do docker
# yum install yum-utils device-mapper-persistent-data lvm2 -y
# yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
# yum install docker-ce
Baixando imagem do ubuntu
# docker pull ubuntu
# docker run -i -t ubuntu bash
# apt-get update
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:2 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [4171 B]
Get:3 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [426 kB]
# apt-get install nginx
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: (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.26.1
/usr/local/share/perl/5.26.1
/usr/lib/x86_64-linux-gnu/perl5/5.26
/usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26
/usr/share/perl/5.26
/usr/local/lib/site_perl
/usr/lib/x86_64-linux-gnu/perl-base)
at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
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.26.1 /usr/local/share/perl/5.26.1
/usr/lib/x86_64-linux-gnu/perl5/5.26
/usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26
/usr/share/perl/5.26
/usr/local/lib/site_perl
/usr/lib/x86_64-linux-gnu/perl-base)
at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
Setting up libnginx-mod-http-image-filter (1.14.0-0ubuntu1.2) ...
Setting up nginx-core (1.14.0-0ubuntu1.2) ...
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
Setting up nginx (1.14.0-0ubuntu1.2) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
# /etc/init.d/nginx start
* Starting nginx nginx [fail]
docker pull nginx
) – Tuxpilgrim 27/05/19 às 19:37debconf
é após as seguintes linhas, ` # docker pull ubuntu`# docker run -i -t ubuntu bash
# apt-get update
, incluir a linhaapt-get install dialog
– a_diogo 29/05/19 às 19:13