docker 1.5 startup error on CentOS 7

 在新装的CentOS 7中用官方Docker RPM包安装了docker 1.5,结果启动docker服务失败,错误日志如下:

 

4月 06 00:55:15 localhost.localdomain docker[2831]: time="2015-04-06T00:55:15+08:00" level="info" msg="+job serveapi(unix:///var/run/docker.sock)"
4月 06 00:55:15 localhost.localdomain docker[2831]: /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
4月 06 00:55:15 localhost.localdomain systemd[1]: docker.service: main process exited, code=exited, status=127/n/a
4月 06 00:55:15 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
4月 06 00:55:15 localhost.localdomain systemd[1]: Unit docker.service entered failed state.
 

一看便知是docker所依赖的软件包的版本不匹配问题。快速google一下,就知道只要更新device-mapper这个RPM到最新版本即可。相应的命令是:

sudo yum update -y device-mapper

 该软件包又更新它所依赖的以下软件包:

 device-mapper-event           x86_64      7:1.02.93-3.el7      base      158 k
 device-mapper-event-libs      x86_64      7:1.02.93-3.el7      base      151 k
 device-mapper-libs            x86_64      7:1.02.93-3.el7      base      259 k

 

你可能感兴趣的:(startup)