centos 7 安装docker,conflicts 异常

[root@localhost html]# yum install docker-io
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.ustc.edu.cn
 * extras: centos.ustc.edu.cn
 * updates: centos.ustc.edu.cn

 运行后,

事务概要
========================================
安装  1 软件包 (+ 4 依赖软件包)
升级  2 软件包 (+14 依赖软件包)

总计:22 M
总下载量:11 M
Is this ok [y/d/N]: y
Downloading packages:
(1/5): docker-selinux-1.10.3-46.el7.centos.10.x86_64.rpm                                                                                             |  78
(2/5): docker-common-1.10.3-46.el7.centos.10.x86_64.rpm                                                                                              |  61
(3/5): oci-systemd-hook-0.1.4-4.git41491a3.el7.x86_64.rpm                                                                                            |  27
(4/5): oci-register-machine-0-1.7.git31bbcd2.el7.x86_64.rpm                                                                                          | 929
(5/5): docker-1.10.3-46.el7.centos.10.x86_64.rpm                                                                                                     | 9.5
----------------------------------------------------------------------------------------------------------------------------------------------------------
总计                                                                                                                                        656 kB/s |  11
Running transaction check
Running transaction test


Transaction check error:
  file /usr/lib/systemd/system/blk-availability.service from install of device-mapper-7:1.02.107-5.el7_2.5.x86_64 conflicts with file from package lvm2-7:6_64
  file /usr/sbin/blkdeactivate from install of device-mapper-7:1.02.107-5.el7_2.5.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64
  file /usr/share/man/man8/blkdeactivate.8.gz from install of device-mapper-7:1.02.107-5.el7_2.5.x86_64 conflicts with file from package lvm2-7:2.02.105-1

错误概要
-------------

运行命令  yum install libdevmapper* -y

先将device-mapper等依赖事先安装结束,再动手安装docker就没有问题了。

安装后,启动service docker start,运行docker info即可查看docker是否安装成功。

【微信公众号里搜索usgrouping】

扫一扫关注公众号,获取软件开发项目实战资讯,避开开发路上的哪些坑,快速进阶成长。

猜你喜欢

转载自bakcom.iteye.com/blog/2319045