Docker Community Forums

Share and learn in the Docker community.

Ubuntu 18.04.4 LTS - Docker install failed

I am unable to install docker on my ubuntu Os :frowning:

Installation step in error :

$ sudo apt-get install docker-ce docker-ce-cli containerd.io

OS :

Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic

Trace :

Reading package lists… Done
Building dependency tree
Reading package lists… Done
Building dependency tree
Reading state information… Done
containerd .io is already the newest version (1.2.13-1).
containerd .io set to manually installed.
The following NEW packages will be installed:
docker-ce docker-ce-cli
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/65.4 MB of archives.
After this operation, 292 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package docker-ce-cli.
(Reading database … 230412 files and directories currently installed.)
Preparing to unpack …/docker-ce-cli_5%3a19.03.8~3-0~ubuntu-bionic_amd64.deb …
Unpacking docker-ce-cli (5:19.03.8~3-0~ubuntu-bionic) …
Selecting previously unselected package docker-ce.
Preparing to unpack …/docker-ce_5%3a19.03.8~3-0~ubuntu-bionic_amd64.deb …
Unpacking docker-ce (5:19.03.8~3-0~ubuntu-bionic) …
Setting up docker-ce-cli (5:19.03.8~3-0~ubuntu-bionic) …
Setting up docker-ce (5:19.03.8~3-0~ubuntu-bionic) …
Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /lib/systemd/system/docker.service.
Created symlink /etc/systemd/system/sockets.target.wants/docker.socket → /lib/systemd/system/docker.socket.
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 Sun 2020-03-29 13:11:51 UTC; 4ms ago
Docs: https:/ /docs.docker.com
Process: 11276 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
Main PID: 11276 (code=exited, status=1/FAILURE)
dpkg: error processing package docker-ce (–configure):
installed docker-ce package post-installation script subprocess returned error exit status 1
Processing triggers for systemd (237-3ubuntu10.39) …
Processing triggers for man-db (2.8.3-2ubuntu0.1) …
Processing triggers for ureadahead (0.100.0-21) …
Errors were encountered while processing:
docker-ce
E: Sub-process /usr/bin/dpkg returned an error code (1)

Thanks for your help !