Não é possível instalar o Docker no Ubuntu 17.10

0

Então, um dia inteiro foi gasto tentando instalar o docker. Este é o erro que eu continuo recebendo. Eu usei a abordagem oficial do docker, e também tentei o guia de instalação do oceano digital.

Setting up docker-ce (18.04.0~ce~3-0~ubuntu) ...
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 Thu 2018-04-19 17:33:13 GMT; 10ms ago
     Docs: https://docs.docker.com
  Process: 6283 ExecStart=/usr/bin/dockerd -H fd:// (code=exited, status=1/FAILURE) ## i suspect this line in service file
 Main PID: 6283 (code=exited, status=1/FAILURE)
      CPU: 201ms

Apr 19 17:33:13 sav-subsystems systemd[1]: docker.service: Unit entered failed state.
Apr 19 17:33:13 sav-subsystems systemd[1]: docker.service: Failed with result 'exit-code'.
dpkg: error processing package docker-ce (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 docker-ce
E: Sub-process /usr/bin/dpkg returned an error code (1)

Depois de reiniciar e registrar no diário o erro: Eu tenho isso - >

-- Unit docker.socket has begun starting up.
Apr 19 17:37:30 sav-subsystems systemd[1]: Listening on Docker Socket for the API.
-- Subject: Unit docker.socket has finished start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- Unit docker.socket has finished starting up.
-- 
-- The start-up result is done.
Apr 19 17:37:30 sav-subsystems systemd[1]: docker.service: Start request repeated too quickly.
Apr 19 17:37:30 sav-subsystems systemd[1]: Failed to start Docker Application Container Engine.
-- Subject: Unit docker.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- Unit docker.service has failed.
-- 
-- The result is failed.
Apr 19 17:37:30 sav-subsystems systemd[1]: docker.socket: Unit entered failed state.
Apr 19 17:37:30 sav-subsystems systemd[1]: docker.service: Unit entered failed state.
Apr 19 17:37:30 sav-subsystems systemd[1]: docker.service: Failed with result 'exit-code'.

Eu também baixei um pacote debian e instalei, ele também falhou.

    
por saviour123 19.04.2018 / 19:41

2 respostas

1

Consegui instalá-lo usando as etapas desta página: link

sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu zesty stable"

sudo apt-get update
sudo apt-get install docker-ce
    
por George Udosen 20.04.2018 / 14:46
1

Você pode verificar se o docker -ce foi instalado e o serviço está sendo executado. Às vezes, se você tentar várias instalações, ele pode gerar esse tipo de erro. Em caso afirmativo, desinstale e tente instalar os seguintes passos de este tutorial -

Essencialmente, você executará os seguintes comandos -

  1. instale as dependências primeiro

     sudo apt install apt-transport-https ca-certificates curl software-properties-common
    
  2. adicione a chave GPG do repositório oficial do Docker ao sistema:

    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
    
  3. Adicione o repositório do Docker em sources.list.d às fontes do APT usando o comando abaixo

    sudo add-apt-repository "deb [arch=amd64] 
    https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable edge"
    
  4. verifique se você consegue instalar o Docker a partir do repositório do Docker

    apt-cache policy docker-ce
    
  5. Por fim, instale o pacote do Docker CE com o comando abaixo

    sudo apt-get install -y docker-ce
    

Voila, você instalou o Docker-CE. você pode verificar a instalação, verificando a versão do docker-ce instalado

docker --version
    
por Shashank Rastogi 02.07.2018 / 11:10