docker.socket: Failed with result ‘service-start-limit-hit‘.

docker启动出问题:
docker.socket: Failed with result ‘service-start-limit-hit’.
解决方法:如下,把/etc/docker/daemon.json改名为/etc/docker/daemon.conf即可
在这里插入图片描述
—————————分界线———————
配完之后我下镜像的时候就发现不对劲了,于是把文件改了回来,然后把上一次的改动删掉再启动,于是成功运行,故此报错是因为daemon.json文件配置有问题,检查并修改应该就可以解决了。

llowing directives are specified both as a flag and in the configuration file: hosts: (from flag: [fd://], from file: [unix:///var/run/docker.sock tcp://0.0.0.0:2375]) Mar 11 20:49:10 localhost systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE Mar 11 20:49:10 localhost systemd[1]: docker.service: Failed with result 'exit-code'. Mar 11 20:49:12 localhost systemd[1]: docker.service: Scheduled restart job, restart counter is at 3. Mar 11 20:49:12 localhost systemd[1]: docker.service: Start request repeated too quickly. Mar 11 20:49:12 localhost systemd[1]: docker.service: Failed with result 'exit-code'. Mar 11 20:49:12 localhost systemd[1]: docker.socket: Failed with result 'service-start-limit-hit'. Mar 11 20:53:14 localhost dockerd[46860]: unable to configure the Docker daemon with file /etc/docker/daemon.json: the following directives are specified both as a flag and in the configuration file: hosts: (from flag: [fd://], from file: [unix:///var/run/docker.sock tcp://0.0.0.0:2375]) Mar 11 20:53:14 localhost systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE Mar 11 20:53:14 localhost systemd[1]: docker.service: Failed with result 'exit-code'. Mar 11 20:53:16 localhost systemd[1]: docker.service: Scheduled restart job, restart counter is at 1. Mar 11 20:53:16 localhost dockerd[46864]: unable to configure the Docker daemon with file /etc/docker/daemon.json: the following directives are specified both as a flag and in the configuration file: hosts: (from flag: [fd://], from file: [unix:///var/run/docker.sock tcp://0.0.0.0:2375]) Mar 11 20:53:16 localhost systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE Mar 11 20:53:16 localhost systemd[1]: docker.service: Failed with result 'exit-code'. Mar 11 20:53:18 localhost systemd[1]: docker.service: Scheduled restart job, restart counter is at 2. Mar 11 20:53:18 localhost dockerd[46869]: unable to configure the Docker daemon with file /etc/docke
03-12
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

许倾墨

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值