web-dev-qa-db-fra.com

Docker ne démarre pas en 18.04

Docker ne parvient pas à démarrer sous Ubuntu 18.04 LTS, journalctl -xe:

-- Unit docker.service has begun starting up.
Jun 09 12:36:36 James-DevPC dockerd[30680]: time="2018-06-09T12:36:36.651922900+01:00" level=info msg="libcontainerd: started new docker-containerd process" pid=30689
Jun 09 12:36:36 James-DevPC dockerd[30680]: time="2018-06-09T12:36:36+01:00" level=info msg="starting containerd" module=containerd revision=773c489c9c1b21a6d78b5c538cd395416ec50f88 version=v1.0.3
Jun 09 12:36:36 James-DevPC dockerd[30680]: time="2018-06-09T12:36:36+01:00" level=info msg="loading plugin "io.containerd.content.v1.content"..." module=containerd type=io.containerd.content.v1
Jun 09 12:36:36 James-DevPC dockerd[30680]: time="2018-06-09T12:36:36+01:00" level=info msg="loading plugin "io.containerd.snapshotter.v1.btrfs"..." module=containerd type=io.containerd.snapshotter.v1
Jun 09 12:36:36 James-DevPC dockerd[30680]: time="2018-06-09T12:36:36+01:00" level=warning msg="failed to load plugin io.containerd.snapshotter.v1.btrfs" error="path /var/lib/docker/containerd/daemon/io.containerd
Jun 09 12:36:36 James-DevPC dockerd[30680]: time="2018-06-09T12:36:36+01:00" level=info msg="loading plugin "io.containerd.snapshotter.v1.overlayfs"..." module=containerd type=io.containerd.snapshotter.v1
Jun 09 12:36:36 James-DevPC dockerd[30680]: time="2018-06-09T12:36:36+01:00" level=info msg="loading plugin "io.containerd.metadata.v1.bolt"..." module=containerd type=io.containerd.metadata.v1
Jun 09 12:36:36 James-DevPC dockerd[30680]: time="2018-06-09T12:36:36+01:00" level=warning msg="could not use snapshotter btrfs in metadata plugin" error="path /var/lib/docker/containerd/daemon/io.containerd.snaps
Jun 09 12:36:36 James-DevPC dockerd[30680]: time="2018-06-09T12:36:36+01:00" level=info msg="loading plugin "io.containerd.differ.v1.walking"..." module=containerd type=io.containerd.differ.v1
Jun 09 12:36:36 James-DevPC dockerd[30680]: time="2018-06-09T12:36:36+01:00" level=info msg="loading plugin "io.containerd.gc.v1.scheduler"..." module=containerd type=io.containerd.gc.v1
Jun 09 12:36:36 James-DevPC dockerd[30680]: time="2018-06-09T12:36:36+01:00" level=info msg="loading plugin "io.containerd.grpc.v1.containers"..." module=containerd type=io.containerd.grpc.v1
Jun 09 12:36:36 James-DevPC dockerd[30680]: time="2018-06-09T12:36:36+01:00" level=info msg="loading plugin "io.containerd.grpc.v1.content"..." module=containerd type=io.containerd.grpc.v1
Jun 09 12:36:36 James-DevPC dockerd[30680]: time="2018-06-09T12:36:36+01:00" level=info msg="loading plugin "io.containerd.grpc.v1.diff"..." module=containerd type=io.containerd.grpc.v1
Jun 09 12:36:36 James-DevPC dockerd[30680]: time="2018-06-09T12:36:36+01:00" level=info msg="loading plugin "io.containerd.grpc.v1.events"..." module=containerd type=io.containerd.grpc.v1
Jun 09 12:36:36 James-DevPC dockerd[30680]: time="2018-06-09T12:36:36+01:00" level=info msg="loading plugin "io.containerd.grpc.v1.healthcheck"..." module=containerd type=io.containerd.grpc.v1
Jun 09 12:36:36 James-DevPC dockerd[30680]: time="2018-06-09T12:36:36+01:00" level=info msg="loading plugin "io.containerd.grpc.v1.images"..." module=containerd type=io.containerd.grpc.v1
Jun 09 12:36:36 James-DevPC dockerd[30680]: time="2018-06-09T12:36:36+01:00" level=info msg="loading plugin "io.containerd.grpc.v1.leases"..." module=containerd type=io.containerd.grpc.v1
Jun 09 12:36:36 James-DevPC dockerd[30680]: time="2018-06-09T12:36:36+01:00" level=info msg="loading plugin "io.containerd.grpc.v1.namespaces"..." module=containerd type=io.containerd.grpc.v1
Jun 09 12:36:36 James-DevPC dockerd[30680]: time="2018-06-09T12:36:36+01:00" level=info msg="loading plugin "io.containerd.grpc.v1.snapshots"..." module=containerd type=io.containerd.grpc.v1
Jun 09 12:36:36 James-DevPC dockerd[30680]: time="2018-06-09T12:36:36+01:00" level=info msg="loading plugin "io.containerd.monitor.v1.cgroups"..." module=containerd type=io.containerd.monitor.v1
Jun 09 12:36:36 James-DevPC dockerd[30680]: time="2018-06-09T12:36:36+01:00" level=info msg="loading plugin "io.containerd.runtime.v1.linux"..." module=containerd type=io.containerd.runtime.v1
Jun 09 12:36:36 James-DevPC dockerd[30680]: time="2018-06-09T12:36:36+01:00" level=info msg="loading plugin "io.containerd.grpc.v1.tasks"..." module=containerd type=io.containerd.grpc.v1
Jun 09 12:36:36 James-DevPC dockerd[30680]: time="2018-06-09T12:36:36+01:00" level=info msg="loading plugin "io.containerd.grpc.v1.version"..." module=containerd type=io.containerd.grpc.v1
Jun 09 12:36:36 James-DevPC dockerd[30680]: time="2018-06-09T12:36:36+01:00" level=info msg="loading plugin "io.containerd.grpc.v1.introspection"..." module=containerd type=io.containerd.grpc.v1
Jun 09 12:36:36 James-DevPC dockerd[30680]: time="2018-06-09T12:36:36+01:00" level=info msg=serving... address="/var/run/docker/containerd/docker-containerd-debug.sock" module="containerd/debug"
Jun 09 12:36:36 James-DevPC dockerd[30680]: time="2018-06-09T12:36:36+01:00" level=info msg=serving... address="/var/run/docker/containerd/docker-containerd.sock" module="containerd/grpc"
Jun 09 12:36:36 James-DevPC dockerd[30680]: time="2018-06-09T12:36:36+01:00" level=info msg="containerd successfully booted in 0.007536s" module=containerd
Jun 09 12:36:36 James-DevPC kernel: device-mapper: table: 253:0: thin-pool: unknown target type
Jun 09 12:36:36 James-DevPC kernel: device-mapper: ioctl: error adding target to table
Jun 09 12:36:36 James-DevPC dockerd[30680]: time="2018-06-09T12:36:36.824772814+01:00" level=error msg="[graphdriver] prior storage driver devicemapper failed: devicemapper: Error running deviceCreate (CreatePool)
Jun 09 12:36:36 James-DevPC dockerd[30680]: Error starting daemon: error initializing graphdriver: devicemapper: Error running deviceCreate (CreatePool) dm_task_run failed
Jun 09 12:36:36 James-DevPC systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
Jun 09 12:36:36 James-DevPC systemd[1]: docker.service: Failed with result 'exit-code'.
Jun 09 12:36:36 James-DevPC systemd[1]: Failed to start Docker Application Container Engine.

Essayé littéralement tout et en tirant mes cheveux maintenant, des idées?

3
Jamesking56

J'ai pu installer docker-ce dans Ubuntu 18.04 LTS en suivant les étapes à partir de ce tutoriel -

Essentiellement, vous exécuterez les commandes suivantes -

  1. installez les dépendances d'abord -

    $ Sudo apt install apt-transport-https ca-certificates curl software-properties-common
    
  2. ajoutez la clé GPG du référentiel Docker officiel au système:

    $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | Sudo apt-key add -
    
  3. Ajoutez le référentiel Docker dans sources.list.d à APT sources à l'aide de la commande ci-dessous.

    $ Sudo add-apt-repository "deb [Arch=AMD64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable Edge"
    
  4. vérifier si vous pouvez installer Docker à partir du référentiel Docker

    $ apt-cache policy docker-ce
    
  5. Enfin, installez le paquet Docker CE avec la commande ci-dessous -

    $ Sudo apt-get install -y docker-ce
    

Voilà, vous avez installé Docker-CE. vous pouvez vérifier l'installation en vérifiant la version de docker-ce installée

$ docker --version
1
Shashank Rastogi