千家信息网

如何在centeos中安装docker

发表于:2024-10-09 作者:千家信息网编辑
千家信息网最后更新 2024年10月09日,本篇内容主要讲解"如何在centeos中安装docker",感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习"如何在centeos中安装docker"吧!在cne
千家信息网最后更新 2024年10月09日如何在centeos中安装docker

本篇内容主要讲解"如何在centeos中安装docker",感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习"如何在centeos中安装docker"吧!

在cnetos 7上一般是这样执行

yum install docker

但是我的有些问题,

报错:

Transaction check error: file /usr/lib/systemd/system/blk-availability.service from install of device-mapper-7:1.02.107-5.el7_2.2.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.2.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.2.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64 错误概要

所以改为先执行

yum install docker yum install libdevmapper* -y

执行

docker -v

如果显示版本号就可以证明安装好了

到此,相信大家对"如何在centeos中安装docker"有了更深的了解,不妨来实际操作一番吧!这里是网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!

0