docker / for-linux

Docker Engine for Linux
https://docs.docker.com/engine/installation/
756 stars 85 forks source link

Docker-ce fails to install in Ubuntu 18.04.2 #606

Open DFOXpro opened 5 years ago

DFOXpro commented 5 years ago

Expected behavior

After sudo apt-get install docker-ce should install docker-ce

Actual behavior

Installation fails with this apt report:

Paramétrage de docker-ce (5:18.09.2~3-0~ubuntu-bionic) ...
update-alternatives: avertissement: forçage de la réinstallation de l'alternative /usr/bin/dockerd-ce car le groupe de liens dockerd est cassé
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 Wed 2019-02-27 12:19:25 -05; 10ms ago
     Docs: https://docs.docker.com
  Process: 23785 ExecStart=/usr/bin/dockerd -H fd:// (code=exited, status=1/FAILURE)
 Main PID: 23785 (code=exited, status=1/FAILURE)

feb 27 12:19:25 DFOXpro-desktop-19-02 systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
feb 27 12:19:25 DFOXpro-desktop-19-02 systemd[1]: docker.service: Failed with result 'exit-code'.
feb 27 12:19:25 DFOXpro-desktop-19-02 systemd[1]: Failed to start Docker Application Container Engine.
dpkg: erreur de traitement du paquet docker-ce (--configure) :
 instalado docker-ce paquete post-installation guión el subproceso devolvió un error con estado de salida 1
Des erreurs ont été rencontrées pendant l'exécution :
 docker-ce
E: Sub-process /usr/bin/dpkg returned an error code (1)

Steps to reproduce the behavior

Follow the instructions here: https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-ce-1

Output of docker version:

(5:18.09.2~3-0~ubuntu-bionic)

Output of docker info:

Docker never start

Additional environment details (AWS, VirtualBox, physical, etc.)

Ubuntu(mate) 18.04.2 fresh install over an AMD PhenomII(x64)

Other notes: looking in the issue tracker I found many related problems in Debian and other distros, but I think it's safe to add this issue to track the Ubuntu error

DFOXpro commented 5 years ago

Following the Debian quick-fix seems to work, restart and retry.

log:

sudo apt-get install docker-ce docker-ce-cli containerd.io
[sudo] Mot de passe de dfoxpro : 
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
containerd.io est déjà la version la plus récente (1.2.2-3).
docker-ce-cli est déjà la version la plus récente (5:18.09.2~3-0~ubuntu-bionic).
docker-ce est déjà la version la plus récente (5:18.09.2~3-0~ubuntu-bionic).
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
1 partiellement installés ou enlevés.
Après cette opération, 0 o d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer ? [O/n] 
Paramétrage de docker-ce (5:18.09.2~3-0~ubuntu-bionic) ...
update-alternatives: avertissement: forçage de la réinstallation de l'alternative /usr/bin/dockerd-ce car le groupe de liens dockerd est cassé
W: APT had planned for dpkg to do more than it reported back (0 vs 4).
   Affected packages: docker-ce:amd64
foot3print commented 5 years ago

I also have the exactly the same issue when installing docker-ce the first time.

➜  docker info

Containers: 7
 Running: 4
 Paused: 0
 Stopped: 3
Images: 12
Server Version: 18.09.6
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 81
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: bb71b10fd8f58240ca47fbb579b9d1028eea7c84
runc version: 2b18fe1d885ee5083ef9f0838fee39b62d653e30
init version: fec3683
Security Options:
 apparmor
 seccomp
  Profile: default
Kernel Version: 4.15.0-51-generic
Operating System: Ubuntu 18.04.2 LTS
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 15.19GiB
Name: mypc1.my_company.com
ID: NF6B:2LGT:CMG2:4B4T:6MZL:VO6R:2NRY:M2CJ:Y45K:SHP2:DWDA:JHK3
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
HTTP Proxy: http://localhost:3128/
HTTPS Proxy: http://localhost:3128
No Proxy: localhost,127.0.0.1,docker-registry.my_company.com
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine

WARNING: No swap limit support
➜ screenfetch
admin@mypc1.my_company.com
OS: Ubuntu 18.04 bionic
Kernel: x86_64 Linux 4.15.0-51-generic
Uptime: 19h 43m
Packages: 2946
Shell: zsh 5.4.2
Resolution: 5120x1440
DE: GNOME 
WM: GNOME Shell
WM Theme: Ant
GTK Theme: Ambiance [GTK2/3]
Icon Theme: DMZ-Black
Font: Cantarell 11
CPU: Intel Core i7-7600U @ 4x 3.9GHz [48.0°C]
RAM: 4417MiB / 15558MiB

The docker service runs smooth after a restart. In seems to be something with the kernel module?

andrejfedorow commented 4 years ago

was resolved with cgroupfs-umount cgroupfs-mount on ubuntu 18.04 for me

EnriqueSolarte commented 3 years ago

I am installing docker in

adv@arm64:/home$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.5 LTS
Release:        18.04
Codename:       bionic

Linux arm64 4.14.98 however, I cannot finish the installation

Process: 12473 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
 Main PID: 12473 (code=exited, status=1/FAILURE)

Does anyone know what is happening here?

zuowanbushiwo commented 3 years ago

Hi
I ran into the same problem, is there a way to solve it now?