美文网首页
docker重启失败 sudo service docker r

docker重启失败 sudo service docker r

作者: sexy_cyber | 来源:发表于2020-02-24 17:21 被阅读0次

    修改完这个文件 /etc/docker/daemon.json,后重新启动docker报错
    systemctl daemon-reload
    systemctl restart docker

     sudo service docker restart
    Redirecting to /bin/systemctl restart docker.service
    Job for docker.service failed because start of the service was attempted too often. See "systemctl status docker.service" and "journalctl -xe" for details.
    To force a start use "systemctl reset-failed docker.service" followed by "systemctl start docker.service" again.
    

    执行命令查看原因

    dockerd
    

    会发现

    unable to configure the Docker daemon with file /etc/docker/daemon.json: invalid character '}' looking for beginning of object key string
    

    基本上都是修改这个文件导致的
    /etc/docker/daemon.json

    看上去没什么问题,但是有很多隐藏的字符看不到,其实就是配置文件的问题

    相关文章

      网友评论

          本文标题:docker重启失败 sudo service docker r

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