systemctl start docker 启动不了

systemctl start docker 启动不了

[root@iZ2ze7zpyut1yrdnqohfrxZ etc]# systemctl status docker.service
● docker.service - Docker Application Container Engine
Loaded: loaded (/etc/systemd/system/docker.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2022-05-29 15:28:22 CST; 7s ago
Docs: https://docs.docker.com
Process: 5957 ExecStart=/usr/bin/dockerd --registry-mirror=<https://ezdwn7ur.mirror.aliyuncs.com> -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
Main PID: 5957 (code=exited, status=1/FAILURE)

5月 29 15:28:19 iZ2ze7zpyut1yrdnqohfrxZ systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
5月 29 15:28:19 iZ2ze7zpyut1yrdnqohfrxZ systemd[1]: docker.service: Failed with result 'exit-code'.
5月 29 15:28:19 iZ2ze7zpyut1yrdnqohfrxZ systemd[1]: Failed to start Docker Application Container Engine.
5月 29 15:28:22 iZ2ze7zpyut1yrdnqohfrxZ systemd[1]: docker.service: Service RestartSec=2s expired, scheduling restart.
5月 29 15:28:22 iZ2ze7zpyut1yrdnqohfrxZ systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
5月 29 15:28:22 iZ2ze7zpyut1yrdnqohfrxZ systemd[1]: Stopped Docker Application Container Engine.
5月 29 15:28:22 iZ2ze7zpyut1yrdnqohfrxZ systemd[1]: docker.service: Start request repeated too quickly.
5月 29 15:28:22 iZ2ze7zpyut1yrdnqohfrxZ systemd[1]: docker.service: Failed with result 'exit-code'.
5月 29 15:28:22 iZ2ze7zpyut1yrdnqohfrxZ systemd[1]: Failed to start Docker Application Container Engine.

正在回答 回答被采纳积分+1

登陆购买课程后可参与讨论,去登陆

1回答
Brian 2022-05-30 08:28:07

把你的/etc/docker/删除掉,然后重装安装

使用如下脚本:

curl -sSL https://get.daocloud.io/docker | sh

  • 提问者 启蒙前端 #1
    执行 过后 会有这个怎么解决呢 ? Cannot connect to the Docker daemon at unix:///run/usr/1000/docker.sock. Is the docker daemon running?
    2022-05-30 09:32:54
  • 提问者 启蒙前端 #2
    执行 这个 dockerd-rootless-setuptool.sh install 命令 会有这个 Refusing to install rootless Docker as the root user 提示
    2022-05-30 09:35:01
  • Brian 回复 提问者 启蒙前端 #3

    请使用管理员权限:sudo curl -sSL https://get.daocloud.io/docker | sh


    如果 linux上安装docker有困难,可以Q群私下找我远程看看!

    2022-06-02 23:35:09
问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
请稍等 ...
意见反馈 帮助中心 APP下载
官方微信

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师