美文网首页docker实战案例
docker报错处理: Failed to start Dock

docker报错处理: Failed to start Dock

作者: 青纹刀狼 | 来源:发表于2021-04-24 09:12 被阅读0次

    今天发现docker起不来了,看了下docker状态,发现这个报错

    [root@localhost multi-user.target.wants]# systemctl status docker.service

    ● docker.service - Docker Application Container Engine

      Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)

      Active: failed (Result: start-limit) since Fri 2021-04-23 20:40:26 EDT; 21s ago

        Docs: https://docs.docker.com

      Process: 2423 ExecStart=/usr/bin/dockerd (code=exited, status=1/FAILURE)

    Main PID: 2423 (code=exited, status=1/FAILURE)

    Apr 23 20:40:25 localhost.localdomain systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE

    Apr 23 20:40:25 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.

    Apr 23 20:40:25 localhost.localdomain systemd[1]: Unit docker.service entered failed state.

    Apr 23 20:40:25 localhost.localdomain systemd[1]: docker.service failed.

    Apr 23 20:40:26 localhost.localdomain systemd[1]: docker.service holdoff time over, scheduling restart.

    Apr 23 20:40:26 localhost.localdomain systemd[1]: start request repeated too quickly for docker.service

    Apr 23 20:40:26 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.

    Apr 23 20:40:26 localhost.localdomain systemd[1]: Unit docker.service entered failed state.

    Apr 23 20:40:26 localhost.localdomain systemd[1]: docker.service failed.

    报错如下:

    解决报错:

    1.你安装了docker,发现这个报错,先使用systemctl   start  docker.service把docker服务搞起来,之后才能restart

    2.修改配置文件/etc/docker/daemon.json,要注意格式缩进可以,但是不能出现空格

    格式如下:

    {

            "registry-mirrors": ["http://hub-mirror.c.163.com"],

             "data-root": "/haha"

    }

    3.就是可能你设置的docker  hub加速访问指向的地方,不可以访问了,建议换个地址比如上面的163,阿里云,清华等等

    相关文章

      网友评论

        本文标题:docker报错处理: Failed to start Dock

        本文链接:https://www.haomeiwen.com/subject/ppekrltx.html