复制代码
1
2
3
4
5
6
7[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
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29事务概要 ======================================== 安装 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】
扫一扫关注公众号,获取软件开发项目实战资讯,避开开发路上的哪些坑,快速进阶成长。
最后
以上就是如意火最近收集整理的关于centos 7 安装docker,conflicts 异常的全部内容,更多相关centos内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复