centos7.0安装Docker engine时,系统有以下提示:
# yum install docker-engine
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:2.02.105-14.el7.x86_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-14.el7.x86_64
Error Summary
经过查找,得到了下面的解决方法:
# yum install libdevmapper* -y //安装libdevmapper*
# yum install docker-engine -y
执行以上两条命令后即可解决该问题。