docker安装报错: Requires: container-selinux >= 2:2.74

这篇具有很好参考价值的文章主要介绍了docker安装报错: Requires: container-selinux >= 2:2.74。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

一. docker 安装报错

[root@master01 opt]# sudo yum install docker-ce-19.03.15 docker-ce-cli-19.03.15 containerd.io

Loaded plugins: fastestmirror
Repository epel-testing is listed more than once in the configuration
Repository epel-testing-debuginfo is listed more than once in the configuration
Repository epel-testing-source is listed more than once in the configuration
Repository epel is listed more than once in the configuration
Repository epel-debuginfo is listed more than once in the configuration
Repository epel-source is listed more than once in the configuration
Loading mirror speeds from cached hostfile
 * base: mirrors.163.com
 * epel: mirrors.bfsu.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package containerd.io.x86_64 0:1.6.22-3.1.el7 will be installed
--> Processing Dependency: container-selinux >= 2:2.74 for package: containerd.io-1.6.22-3.1.el7.x86_64
---> Package docker-ce.x86_64 3:19.03.15-3.el7 will be installed
--> Processing Dependency: container-selinux >= 2:2.74 for package: 3:docker-ce-19.03.15-3.el7.x86_64
--> Processing Dependency: libcgroup for package: 3:docker-ce-19.03.15-3.el7.x86_64
---> Package docker-ce-cli.x86_64 1:19.03.15-3.el7 will be installed
--> Running transaction check
---> Package containerd.io.x86_64 0:1.6.22-3.1.el7 will be installed
--> Processing Dependency: container-selinux >= 2:2.74 for package: containerd.io-1.6.22-3.1.el7.x86_64
---> Package docker-ce.x86_64 3:19.03.15-3.el7 will be installed
--> Processing Dependency: container-selinux >= 2:2.74 for package: 3:docker-ce-19.03.15-3.el7.x86_64
---> Package libcgroup.x86_64 0:0.41-21.el7 will be installed
--> Finished Dependency Resolution
Error: Package: containerd.io-1.6.22-3.1.el7.x86_64 (docker-ce-stable)
           Requires: container-selinux >= 2:2.74
Error: Package: 3:docker-ce-19.03.15-3.el7.x86_64 (docker-ce-stable)
           Requires: container-selinux >= 2:2.74
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

二. 解决方式

[root@master01 opt]# sudo yum install -y yum install http://mirror.centos.org/centos/7/extras/x86_64/Packages/container-selinux-2.107-1.el7_6.noarch.rpm
Loaded plugins: fastestmirror
Repository epel-testing is listed more than once in the configuration
Repository epel-testing-debuginfo is listed more than once in the configuration
Repository epel-testing-source is listed more than once in the configuration
Repository epel is listed more than once in the configuration
Repository epel-debuginfo is listed more than once in the configuration
Repository epel-source is listed more than once in the configuration
Loading mirror speeds from cached hostfile
 * base: mirrors.163.com
 * epel: mirrors.bfsu.edu.cn
Package yum-3.4.3-168.el7.centos.noarch already installed and latest version
No package install available.
container-selinux-2.107-1.el7_6.noarch.rpm                                                                                                             |  39 kB  00:00:00
Examining /var/tmp/yum-root-NDhvp_/container-selinux-2.107-1.el7_6.noarch.rpm: 2:container-selinux-2.107-1.el7_6.noarch
Marking /var/tmp/yum-root-NDhvp_/container-selinux-2.107-1.el7_6.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package container-selinux.noarch 2:2.107-1.el7_6 will be installed
--> Processing Dependency: policycoreutils-python for package: 2:container-selinux-2.107-1.el7_6.noarch
--> Running transaction check
---> Package policycoreutils-python.x86_64 0:2.5-34.el7 will be installed
--> Processing Dependency: setools-libs >= 3.3.8-4 for package: policycoreutils-python-2.5-34.el7.x86_64
--> Processing Dependency: libsemanage-python >= 2.5-14 for package: policycoreutils-python-2.5-34.el7.x86_64
--> Processing Dependency: audit-libs-python >= 2.1.3-4 for package: policycoreutils-python-2.5-34.el7.x86_64
--> Processing Dependency: python-IPy for package: policycoreutils-python-2.5-34.el7.x86_64
--> Processing Dependency: libqpol.so.1(VERS_1.4)(64bit) for package: policycoreutils-python-2.5-34.el7.x86_64
--> Processing Dependency: libqpol.so.1(VERS_1.2)(64bit) for package: policycoreutils-python-2.5-34.el7.x86_64
--> Processing Dependency: libcgroup for package: policycoreutils-python-2.5-34.el7.x86_64
--> Processing Dependency: libapol.so.4(VERS_4.0)(64bit) for package: policycoreutils-python-2.5-34.el7.x86_64
--> Processing Dependency: checkpolicy for package: policycoreutils-python-2.5-34.el7.x86_64
--> Processing Dependency: libqpol.so.1()(64bit) for package: policycoreutils-python-2.5-34.el7.x86_64
--> Processing Dependency: libapol.so.4()(64bit) for package: policycoreutils-python-2.5-34.el7.x86_64
--> Running transaction check
---> Package audit-libs-python.x86_64 0:2.8.5-4.el7 will be installed
---> Package checkpolicy.x86_64 0:2.5-8.el7 will be installed
---> Package libcgroup.x86_64 0:0.41-21.el7 will be installed
---> Package libsemanage-python.x86_64 0:2.5-14.el7 will be installed
---> Package python-IPy.noarch 0:0.75-6.el7 will be installed
---> Package setools-libs.x86_64 0:3.3.8-4.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================================================
 Package                                    Arch                       Version                              Repository                                                   Size
==============================================================================================================================================================================
Installing:
 container-selinux                          noarch                     2:2.107-1.el7_6                      /container-selinux-2.107-1.el7_6.noarch                      40 k
Installing for dependencies:
 audit-libs-python                          x86_64                     2.8.5-4.el7                          base                                                         76 k
 checkpolicy                                x86_64                     2.5-8.el7                            base                                                        295 k
 libcgroup                                  x86_64                     0.41-21.el7                          base                                                         66 k
 libsemanage-python                         x86_64                     2.5-14.el7                           base                                                        113 k
 policycoreutils-python                     x86_64                     2.5-34.el7                           base                                                        457 k
 python-IPy                                 noarch                     0.75-6.el7                           base                                                         32 k
 setools-libs                               x86_64                     3.3.8-4.el7                          base                                                        620 k

Transaction Summary
==============================================================================================================================================================================
Install  1 Package (+7 Dependent packages)

Total size: 1.7 M
Total download size: 1.6 M
Installed size: 5.3 M
Downloading packages:
(1/7): audit-libs-python-2.8.5-4.el7.x86_64.rpm                                                                                                        |  76 kB  00:00:00
(2/7): libcgroup-0.41-21.el7.x86_64.rpm                                                                                                                |  66 kB  00:00:00
(3/7): checkpolicy-2.5-8.el7.x86_64.rpm                                                                                                                | 295 kB  00:00:00
(4/7): libsemanage-python-2.5-14.el7.x86_64.rpm                                                                                                        | 113 kB  00:00:00
(5/7): policycoreutils-python-2.5-34.el7.x86_64.rpm                                                                                                    | 457 kB  00:00:00
(6/7): python-IPy-0.75-6.el7.noarch.rpm                                                                                                                |  32 kB  00:00:00
(7/7): setools-libs-3.3.8-4.el7.x86_64.rpm                                                                                                             | 620 kB  00:00:00
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                         2.6 MB/s | 1.6 MB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : setools-libs-3.3.8-4.el7.x86_64                                                                                                                            1/8
  Installing : libcgroup-0.41-21.el7.x86_64                                                                                                                               2/8
  Installing : audit-libs-python-2.8.5-4.el7.x86_64                                                                                                                       3/8
  Installing : python-IPy-0.75-6.el7.noarch                                                                                                                               4/8
  Installing : libsemanage-python-2.5-14.el7.x86_64                                                                                                                       5/8
  Installing : checkpolicy-2.5-8.el7.x86_64                                                                                                                               6/8
  Installing : policycoreutils-python-2.5-34.el7.x86_64                                                                                                                   7/8
  Installing : 2:container-selinux-2.107-1.el7_6.noarch                                                                                                                   8/8
setsebool:  SELinux is disabled.
  Verifying  : checkpolicy-2.5-8.el7.x86_64                                                                                                                               1/8
  Verifying  : libsemanage-python-2.5-14.el7.x86_64                                                                                                                       2/8
  Verifying  : 2:container-selinux-2.107-1.el7_6.noarch                                                                                                                   3/8
  Verifying  : python-IPy-0.75-6.el7.noarch                                                                                                                               4/8
  Verifying  : policycoreutils-python-2.5-34.el7.x86_64                                                                                                                   5/8
  Verifying  : audit-libs-python-2.8.5-4.el7.x86_64                                                                                                                       6/8
  Verifying  : libcgroup-0.41-21.el7.x86_64                                                                                                                               7/8
  Verifying  : setools-libs-3.3.8-4.el7.x86_64                                                                                                                            8/8

Installed:
  container-selinux.noarch 2:2.107-1.el7_6

Dependency Installed:
  audit-libs-python.x86_64 0:2.8.5-4.el7           checkpolicy.x86_64 0:2.5-8.el7       libcgroup.x86_64 0:0.41-21.el7          libsemanage-python.x86_64 0:2.5-14.el7
  policycoreutils-python.x86_64 0:2.5-34.el7       python-IPy.noarch 0:0.75-6.el7       setools-libs.x86_64 0:3.3.8-4.el7

Complete!

文章来源地址https://www.toymoban.com/news/detail-686445.html

到了这里,关于docker安装报错: Requires: container-selinux >= 2:2.74的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 云服务部署kafka 报错:“docker run“ requires at least 1 argument.

    创建kafka我们需要分两步走: 前沿:请大家注意在云服务器上部署任何新的服务一定要注意在对应云安全配置上开放此端口号   1、使用docker 先拉取 zookeeper,因为kafka对zookeeper是强依赖 命令:docker pull zookeeper:3.4.14 创建容器指令:docker run -d --name zookeeper -p 2181:2181 zookeeper:3.

    2024年02月08日
    浏览(40)
  • Docker报错:无法删除‘/var/lib/docker/containers‘’: 设备或资源繁忙

    Docker报错:无法删除‘/var/lib/docker/containers‘’: 设备或资源繁忙 在使用Docker管理大数据时,有时可能会遇到一些问题和错误。其中之一是在删除Docker容器时出现的错误信息:“rm: cannot remove ‘/var/lib/docker/containers‘’: Device or resource busy”。本文将详细解释这个错误的原因,

    2024年02月03日
    浏览(56)
  • docker cp命令使用及报错(Error: No such container:path)处理

    需要把docker中的文件取到本地,docker cp命令一直不能成功,错误原因也在网上查了,一遍遍尝试还是报诸如“No such container:path: 312ee12b47a8:/opt/samba/user_data/app/test.sh”这样的错误,发了 个提问,幸好有高手指点,总算把文件给取出来了,虽然是绕道而行,但是比较到达终点,还

    2023年04月10日
    浏览(35)
  • docker报错Error response from daemon: Container xxx is not running

    在移植了docker后,执行了 sudo docker run --name myrosort -p 80:80 -d rosort 指令运行名为myrosort的容器,通过 sudo docker ps -a 也可以看到确实运行了 但接下来想要进入容器,执行 sudo docker start myrosort 以及 sudo docker exec -it myrosort bash 指令的以后发现报错,容器没有运行, 53e999137030b67.....

    2024年02月04日
    浏览(59)
  • docker启动mysql报错:Error invoking remote method ‘docker-start-container‘: Error: (HTTP code 500) server

    1、问题 docker启动mysql报错:Error invoking remote method \\\'docker-start-container\\\': Error: (HTTP code 500) server error - Ports are not available: exposing port TCP 0.0.0.0:3306 - 0.0.0.0:0: listen tcp 0.0.0.0:3306: bind: An attempt was made to access a socket in a way forbidden by its access permissions. 2、解决办法 这是MySQL镜像安装中出现

    2024年02月16日
    浏览(49)
  • Docker 删除镜像文件以及解决删除报错image is being used by stopped container 的问题

    1.使用命令查看所有镜像 2.根据ID删除需要删除的镜像 3.如果删除时出现了image is being used by stopped container的错误就先使用一下命令再执行删除指令: 4.再次执行成功

    2024年02月05日
    浏览(46)
  • centOS 快速安装和配置 NVIDIA docker Container Toolkit

    要在 CentOS 上正确安装和配置 NVIDIA Container Toolkit,您可以按照以下步骤进行操作,如果1和2都已经完成,可以直接进行第3步NVIDIA Container Toolkit安装配置。 您可以从 NVIDIA 官方网站下载适用于您的 GPU 型号和 CentOS 版本的驱动程序,并按照安装指南进行安装。确保您的系统已正确

    2024年02月07日
    浏览(45)
  • docker报错之:docker: Error response from daemon: Conflict. The container name “xxx“ is already in use b

            最近再使用docker搭建靶场环境的时候,遇到了docker容器报错。 这是docker守护进程冲突引起的响应错误。猜测可能是之前启动容器未正确的退出导致的。需要将以前启动过的容器删掉。 1、docker ps -a 查看所有的容器状态,包括正在运行和已经停止的。 2、docker rm i

    2024年02月03日
    浏览(54)
  • 【Ubuntu】为Docker安装NVIDIA运行时环境(NVIDIA Container Runtime for Docker)

    在Ubuntu系统上,为Docker安装NVIDIA运行时环境(NVIDIA Container Runtime for Docker)通常涉及以下步骤: 安装Docker (如果您还没有安装): 首先,确保您的系统已经安装了Docker。您可以使用以下命令进行安装: 添加NVIDIA容器运行时的存储库 : 执行以下命令以添加NVIDIA的Apt存储库:

    2024年01月24日
    浏览(43)
  • LXC(Linux Containers)介绍、安装、使用及与Docker的区别与联系

    LXC是Linux容器(Linux Containers)的缩写,是一种轻量级的虚拟化技术,允许在同一主机上运行多个相互隔离的Linux容器,每个容器都有自己的完整的文件系统、网络、进程和资源隔离环境。LXC使用Linux内核提供的cgroups和命名空间(Namespaces)功能来实现容器隔离。 与传统的虚拟机

    2024年02月09日
    浏览(44)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包