docker无法启动,提示Unable to locate plugin: weave


当前环境基于rhel7.1,docker1.9

测试时曾配置了weave,通过weave 插件的形式建立weave网络,并加载容器到weave网络中。之后由于系统重启,在启动docker进程时报错,无法加载weave插件。

现在weave的桥接设备也是没有的。网上搜了下,可能因为weave插件若以容器运行,则会导致无法由docker进程加载。

systemctl status docker.service

docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled)
Active: failed (Result: timeout) since Mon 2016-02-01 11:32:00 CST; 43min ago
Docs: https://docs.docker.com
Main PID: 4053
CGroup: /system.slice/docker.service

Feb 01 11:31:32 demo.example.com docker: time="2016-02-01T11:31:32.063164435+08:00" level=warning msg="Unable to locate plugin: weave, retrying in 2s"
Feb 01 11:31:34 demo.example.com docker: time="2016-02-01T11:31:34.063466496+08:00" level=warning msg="Unable to locate plugin: weave, retrying in 4s"
Feb 01 11:31:38 demo.example.com docker: time="2016-02-01T11:31:38.063719418+08:00" level=warning msg="Unable to locate plugin: weave, retrying in 8s"
Feb 01 11:31:46 demo.example.com docker: time="2016-02-01T11:31:46.064030100+08:00" level=warning msg="Unable to locate plugin: weave, retrying in 1s"
Feb 01 11:31:47 demo.example.com docker: time="2016-02-01T11:31:47.064299957+08:00" level=warning msg="Unable to locate plugin: weave, retrying in 2s"
Feb 01 11:31:49 demo.example.com docker: time="2016-02-01T11:31:49.064572009+08:00" level=warning msg="Unable to locate plugin: weave, retrying in 4s"
Feb 01 11:31:53 demo.example.com docker: time="2016-02-01T11:31:53.064864335+08:00" level=warning msg="Unable to locate plugin: weave, retrying in 8s"
Feb 01 11:32:00 demo.example.com systemd: docker.service operation timed out. Terminating.
Feb 01 11:32:00 demo.example.com systemd: Failed to start Docker Application Container Engine.
Feb 01 11:32:00 demo.example.com systemd: Unit docker.service entered failed state.
已邀请:

lueliu

赞同来自: ozbillwang


该问题已解决了,在weave的插件管理里面,提到了该问题。
http://docs.weave.works/weave/ ... .html

在docker配置中,项目里面,加上TimeoutStartSec=0,避免docker超时退出
/lib/systemd/system/docker.service

lueliu

赞同来自:


在weave troubleshooting指引上,也提到了重启系统的情况,但只是说weave的相关配置需要通过weave reset的方式进行重设而已。

要回复问题请先登录注册