请选择 进入手机版 | 继续访问电脑版
 找回密码
 立即注册
搜索

docker报错启动不了,如何重装

admin 2022-5-30 13:52:12 显示全部楼层 阅读模式
启功docker时显示报错

● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
   Active: failed (Result: start-limit) since 一 2022-05-30 13:21:02 CST; 1min 7s ago
     Docs: https://docs.docker.com
  Process: 60937 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
Main PID: 60937 (code=exited, status=1/FAILURE)

5月 30 13:21:00 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
5月 30 13:21:00 localhost.localdomain systemd[1]: Unit docker.service entered failed state.
5月 30 13:21:00 localhost.localdomain systemd[1]: docker.service failed.
5月 30 13:21:02 localhost.localdomain systemd[1]: docker.service holdoff time over, scheduling restart.
5月 30 13:21:02 localhost.localdomain systemd[1]: Stopped Docker Application Container Engine.
5月 30 13:21:02 localhost.localdomain systemd[1]: start request repeated too quickly for docker.service
5月 30 13:21:02 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
5月 30 13:21:02 localhost.localdomain systemd[1]: Unit docker.service entered failed state.
5月 30 13:21:02 localhost.localdomain systemd[1]: docker.service failed.


解决办法:
先删除docker
yum remove -y docker \
    docker-ce \
    docker-client \
    docker-client-latest \
    docker-common \
    docker-latest \
    docker-latest-logrotate \
    docker-logrotate \
    docker-selinux \
    docker-engine-selinux \
    docker-engine
    rm -rf /var/lib/docker
    rm -rf /run/docker
    rm -rf /var/run/docker
    rm -rf /etc/docker


再重新安装docker
yum install -y yum-utils
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

yum install docker-ce docker-ce-cli containerd.io docker-compose-plugin

systemctl start docker





回复

使用道具 举报

评论0
赞0
  • 0 关注
  • 0 粉丝
  • 4 帖子
小贴士
如果你不是特别对他的每一句话感兴趣,不要随意用"关注"人的功能,因为关注以后,他的所有发帖回帖都会以通知的方式提醒你的!
统计信息
  • 在线人数:10 人
  • 会员总数:7 人
  • 累计发帖:4 篇
返回顶部