Score:0

Docker installation fails on Ubuntu 20.04

hu flag

I am attempting to install Docker following the instructions given in documentation.

The download of files succeeds, but the post-installation script fails:

Setting up docker-ce (5:20.10.8~3-0~ubuntu-focal) ...
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 Sat 2021-08-21 11:44:55 CDT; 3ms ago
TriggeredBy: ● docker.socket
       Docs: https://docs.docker.com
    Process: 138394 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
   Main PID: 138394 (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
Errors were encountered while processing:
 docker-ce
E: Sub-process /usr/bin/dpkg returned an error code (1)

There isn't much ancillary information available:

user@machine:~$ systemctl status docker.service
● docker.service - Docker Application Container Engine
     Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sat 2021-08-21 11:45:03 CDT; 29s ago
TriggeredBy: ● docker.socket
       Docs: https://docs.docker.com
    Process: 138847 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
   Main PID: 138847 (code=exited, status=1/FAILURE)

Looking at journalctl -xe provides no information, there are no log entries corresponding to these installation attempts.

The error line is referenced here but that is pretty old and I tried a full removal and file purge to no effect. The kernel issues reported around that issue seem to be related to some past time where docker no longer supported kernel versions under 3.10. I'm on 5.11 and I don't see any indication that this is a problem any more.

This may be a duplicate, but I don't speak Russian so not sure. That question isn't answered anyways.

Artur Meinild avatar
vn flag
Could you please edit your post, and include all commands you ran and their respective output during installation? This is the only way to follow the trail and see what might be the problem.
Artur Meinild avatar
vn flag
Also, did you remember this VERY important part of removing the old versions first? `sudo apt-get remove docker docker-engine docker.io containerd runc`
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.