0
respostas

Erro ao instalar o docker no Ubuntu 20.04 Lts

Ao realizar os procedimentos da propria documentação da docker:

-> sudo apt-get update sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg \ lsb-release

 Adicionar a chave
 -> curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

 Deixar o repositorio estavel

 ->  echo \
            "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg]     https://download.docker.com/linux/ubuntu \
      $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

Instalação do docker: -> sudo apt-get update sudo apt-get install docker-ce docker-ce-cli containerd.io

 Após realizar esse ultimo comando dá esse erro abaixo:

Job for docker.service failed because the control process exited with error code.
    See "systemctl status docker.service" and "journalctl -xe" for details.
    invoke-rc.d: initscript docker, action "start" failed.
            ● docker.service - Docker Application Container Engine
     Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Mon 2021-10-18 17:22:50 -03; 7ms ago
    TriggeredBy: ● docker.socket
    Docs: https://docs.docker.com
    Process: 56588 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
       Main PID: 56588 (code=exited, status=1/FAILURE)
    dpkg: erro ao processar o pacote docker-ce (--configure):
     o subprocesso instalado, do pacote docker-ce, o script post-installation retornou erro do status de saída 1
    A processar 'triggers' para man-db (2.9.1-1) ...
    A processar 'triggers' para systemd (245.4-4ubuntu3.13) ...
    Erros foram encontrados durante o processamento de:
     docker-ce
    E: Sub-process /usr/bin/dpkg returned an error code (1)