Job for docker.service failed because start of the service was attempted too often. See "systemctl s...

安装docker时,自己添加了国内的hub.docker.com镜像

[root@ce-docker ~]# systemctl restart docker

出现以下报错:
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.

[root@ce-docker ~]# vim /etc/docker/daemon.json
[root@ce-docker ~]# mv /etc/docker/daemon.json /etc/docker/daemon.conf
[root@ce-docker ~]# systemctl start docker

这样就成功了

[root@ce-docker ~]# service status docker
The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.
[root@ce-docker ~]# systemctl status docker
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
   Active: active (running) since 三 2019-06-26 11:25:10 CST; 43s ago
     Docs: https://docs.docker.com
 Main PID: 33473 (dockerd)
    Tasks: 8
   Memory: 28.8M
   CGroup: /system.slice/docker.service
           └─33473 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock

6月 26 11:25:10 ce-docker dockerd[33473]: time="2019-06-26T11:25:10.620816911+08:00" level=info ms...grpc
6月 26 11:25:10 ce-docker dockerd[33473]: time="2019-06-26T11:25:10.624774687+08:00" level=info ms...ay2"
6月 26 11:25:10 ce-docker dockerd[33473]: time="2019-06-26T11:25:10.627037017+08:00" level=info ms...nds"
6月 26 11:25:10 ce-docker dockerd[33473]: time="2019-06-26T11:25:10.627583030+08:00" level=info ms...rt."
6月 26 11:25:10 ce-docker dockerd[33473]: time="2019-06-26T11:25:10.705312061+08:00" level=info ms...ess"
6月 26 11:25:10 ce-docker dockerd[33473]: time="2019-06-26T11:25:10.735358787+08:00" level=info ms...ne."
6月 26 11:25:10 ce-docker dockerd[33473]: time="2019-06-26T11:25:10.842464352+08:00" level=info ms...09.6
6月 26 11:25:10 ce-docker dockerd[33473]: time="2019-06-26T11:25:10.842687809+08:00" level=info ms...ion"
6月 26 11:25:10 ce-docker systemd[1]: Started Docker Application Container Engine.
6月 26 11:25:10 ce-docker dockerd[33473]: time="2019-06-26T11:25:10.865343198+08:00" level=info ms...ock"
Hint: Some lines were ellipsized, use -l to show in full.






转载于:https://www.cnblogs.com/zc1741845455/p/11088902.html

  • 3
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值