码迷,mamicode.com
首页 > 其他好文 > 详细

centos 6.5安装docker报错

时间:2015-03-09 19:19:39      阅读:129      评论:0      收藏:0      [点我收藏+]

标签: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...


centos 6.5安装docker报错

标签:centos6.5 docker

原文地址:http://gtianf.blog.51cto.com/1897726/1618651

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!