erro instalação nginx no docker

Principal Forums Instalação e configuração erro instalação nginx no docker

  • This topic has 0 replies, 1 voice, and was last updated 5 years ago by alexpoilt.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #48921 Reply
    alexpoilt
    Guest

    Pessoal, boa tarde.

    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]
    Get:4 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [5436 B]
    Get:5 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [304 kB]
    Get:6 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
    Get:7 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
    Get:8 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
    Get:9 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
    Get:10 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB]
    Get:11 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]

    # 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]

Viewing 1 post (of 1 total)
Reply To: erro instalação nginx no docker
Your information:




eight + one =