首页 > 网络 > 云计算 >

centos6.5安装docker报错

2016-12-09

centos6 5安装docker为什么报错呢?有什么解决方法吗?接下来红黑小编就来介绍一下centos6 5安装docker报错的问题,希望对大家有所帮助。

1)yum安装docker
[root@namenode ~]# yum install docker-io
(2)启动docker
[root@namenode ~]# /etc/init.d/docker restart
停止 docker:                                              [失败]
Starting docker:                                   [确定]
[root@namenode ~]# /etc/init.d/docker status
docker 已死,但 pid 文件仍存
[root@namenode ~]# docker -d
启动报错,日志查看如下
tail -f /var/log/docker
time="2015-03-09T16:05:29+08:00" level="info" msg="+job serveapi(unix:///var/run/docker.sock)" 
time="2015-03-09T16:05:29+08:00" level="info" msg="WARNING: You are running linux kernel version 2.6.32-431.el6.x86_64, which might be unstable running docker. Please upgrade your kernel to 3.8.0." 
time="2015-03-09T16:05:29+08:00" level="info" msg="Listening for HTTP on unix (/var/run/docker.sock)" 
/usr/bin/docker: relocation error: /usr/bin/docker: symbol dm_task_get_info_with_deferred_remove, version Base not defined in file libdevmapper.so.1.02 with link time reference
(3)google后,解决办法如下
yum install device-mapper-event-libs
(4)重启docker
[root@namenode ~]# /etc/init.d/docker restart
Stopping docker:                                           [FAILED]
Starting docker:                                       [  OK  ]
[root@namenode ~]# /etc/init.d/docker status
docker (pid  12503) is running...
相关文章
最新文章
热点推荐