Docker:事务检查错误

时间:2016-07-15 17:40:31

标签: docker centos7

我正在尝试安装docker并关注https://get.docker.com/

我在CentOS7上

-bash-4.2$ cd
-bash-4.2$ wget -qO- https://get.docker.com/ | sh
+ sudo -E sh -c 'sleep 3; yum -y -q install docker-engine'
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
-------------

任何人都知道这个错误意味着什么以及如何解决它?

2 个答案:

答案 0 :(得分:2)

我已更新:

sudo yum update

现在,docker命令正常工作

答案 1 :(得分:1)

看起来device-mapper-7与您系统上的lvm2-7不兼容。

您可以尝试卸载device-mapper-7。然后尝试再次运行Docker安装。