Ubuntu 20.04 上 Docker 安装失败

Ubuntu 20.04 上 Docker 安装失败

我正在尝试按照以下说明安装 Docker文档

文件下载成功,但安装后脚本失败:

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)

没有太多可用的辅助信息:

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)

查看journalctl -xe没有提供任何信息,没有与这些安装尝试相对应的日志条目。

错误行引用这里但那已经是相当老旧了,我尝试过完全删除和文件清除,但毫无效果。有关该问题报告的内核问题似乎与过去有关,当时 docker 不再支持低于 3.10 的内核版本。我使用的是 5.11,我没有看到任何迹象表明这不再是一个问题。

这可能是复制,但我不会说俄语,所以不确定。无论如何,这个问题没有得到回答。

相关内容