Docker-ce 拒绝安装(18.04)

Docker-ce 拒绝安装(18.04)

我已经尝试安装docker-ce几个小时了,但没有成功。我运行的是 vanilla 18.04,并且使用了官方的数字海洋安装指南都产生相同的错误。

尝试的解决方案:

  • 这个循序渐进的答案在重新尝试之前彻底删除 Docker。
  • 我已根据以下建议下载并尝试了旧版本这篇博文
  • 我已禁用 AskUbuntu 上其他地方建议的 VPN 服务。

输出sudo apt-get install docker-ce

Reading package lists... Done
Building dependency tree       
Reading state information... Done
docker-ce is already the newest version (5:19.03.13~3-0~ubuntu-bionic).
0 upgraded, 0 newly installed, 0 to remove and 69 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up docker-ce (5:19.03.13~3-0~ubuntu-bionic) ...
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 Fri 2020-11-13 16:33:18 CET; 7ms ago
     Docs: https://docs.docker.com
  Process: 14405 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
 Main PID: 14405 (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)

输出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 Fri 2020-11-13 16:33:25 CET; 4min 36s ago
     Docs: https://docs.docker.com
  Process: 14540 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
 Main PID: 14540 (code=exited, status=1/FAILURE)

Nov 13 16:33:25 biskop systemd[1]: docker.service: Service hold-off time over, scheduling restart.
Nov 13 16:33:25 biskop systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
Nov 13 16:33:25 biskop systemd[1]: Stopped Docker Application Container Engine.
Nov 13 16:33:25 biskop systemd[1]: docker.service: Start request repeated too quickly.
Nov 13 16:33:25 biskop systemd[1]: docker.service: Failed with result 'exit-code'.
Nov 13 16:33:25 biskop systemd[1]: Failed to start Docker Application Container Engine.

任何帮助大大赞赏。

相关内容