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,我沒有看到任何跡象表明這不再是一個問題。

這可能是一個複製,但我不會說俄語,所以不確定。這個問題無論如何都沒有答案。

相關內容