查看: 3688|回复: 4

[求助] docker安装报错....有人遇到过嘛

[复制链接]
发表于 2020-7-8 23:26:51 | 显示全部楼层 |阅读模式
Trying to update sources......
Reading package lists... Building dependency tree... Reading state information...
The following additional packages will be installed: containerd.io docker-ce docker-ce-cli Recommended packages: aufs-tools cgroupfs-mount | cgroup-lite git pigz The following NEW packages will be installed: containerd.io docker-ce docker-ce-cli docker-unas 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. Need to get 93.4 MB of archives. After this operation, 384 MB of additional disk space will be used. Get:1 http://shanghai.unasmirror.com/debian callisto/main amd64 containerd.io amd64 1.2.10-3 [20.0 MB]
Get:2 http://shanghai.unasmirror.com/debian callisto/main amd64 docker-ce-cli amd64 5:19.03.5~3-0~debian-stretch [42.5 MB]
Get:3 http://shanghai.unasmirror.com/debian callisto/main amd64 docker-ce amd64 5:19.03.5~3-0~debian-stretch [22.8 MB]
Get:4 http://shanghai.unasmirror.com/debian callisto/main amd64 docker-unas amd64 1.1.2 [8103 kB]
Fetched 93.4 MB in 2min 56s (529 kB/s) Selecting previously unselected package containerd.io. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 64079 files and directories currently installed.) Preparing to unpack .../containerd.io_1.2.10-3_amd64.deb ... Unpacking containerd.io (1.2.10-3) ...
Selecting previously unselected package docker-ce-cli. Preparing to unpack .../docker-ce-cli_5%3a19.03.5~3-0~debian-stretch_amd64.deb ... Unpacking docker-ce-cli (5:19.03.5~3-0~debian-stretch) ...
Selecting previously unselected package docker-ce. Preparing to unpack .../docker-ce_5%3a19.03.5~3-0~debian-stretch_amd64.deb ... Unpacking docker-ce (5:19.03.5~3-0~debian-stretch) ...
Selecting previously unselected package docker-unas. Preparing to unpack .../docker-unas_1.1.2_amd64.deb ... Unpacking docker-unas (1.1.2) ...
Setting up containerd.io (1.2.10-3) ... Created symlink /etc/systemd/system/multi-user.target.wants/containerd.service -> /lib/systemd/system/containerd.service.
Processing triggers for systemd (232-25+deb9u12) ... Processing triggers for man-db (2.7.6.1-2) ... Setting up docker-ce-cli (5:19.03.5~3-0~debian-stretch) ... Setting up docker-ce (5:19.03.5~3-0~debian-stretch) ... 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 Wed 2020-07-08 23:19:56 CST; 11ms ago Docs: https://docs.docker.com Process: 3636 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE) Main PID: 3636 (code=exited, status=1/FAILURE) CPU: 106ms Jul 08 23:19:56 U-NAS systemd[1]: docker.service: Unit entered failed state. Jul 08 23:19:56 U-NAS systemd[1]: docker.service: Failed with result 'exit-code'. dpkg: error processing package docker-ce (--configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of docker-unas: docker-unas depends on docker-ce; however: Package docker-ce is not configured yet. dpkg: error processing package docker-unas (--configure): dependency problems - leaving unconfigured Processing triggers for systemd (232-25+deb9u12) ... Errors were encountered while processing: docker-ce docker-unas

这个是源的问题嘛?

回复

使用道具 举报

发表于 2020-7-16 10:59:53 | 显示全部楼层
.......
回复 支持 反对

使用道具 举报

发表于 2020-7-17 00:55:02 | 显示全部楼层
根据日志,错误从这里开始:

Job for docker.service failed because the control process exited with error code.

你修改过镜像源?

如果是配置了国内镜像,并且镜像文件为/etc/docker/daemon.json,试下修改文件后缀为.conf

如果还不行,那要找个高手帮你看看了
回复 支持 反对

使用道具 举报

发表于 2020-7-17 02:11:00 | 显示全部楼层
http://www.u-share.cn/thread-192878-1-1.html
改成这个帖子里的源,或者用踢梓试试
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|Archiver|手机版|万由科技 ( 浙ICP备10004788号-13 )

GMT+8, 2024-5-12 00:44 , Processed in 0.092640 second(s), 27 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表