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

news/2024/10/18 19:24:25/

一. docker 安装报错

[root@master01 opt]# sudo yum install docker-ce-19.03.15 docker-ce-cli-19.03.15 containerd.ioLoaded 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.74You could try using --skip-broken to work around the problemYou 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 ResolutionDependencies 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 kcheckpolicy                                x86_64                     2.5-8.el7                            base                                                        295 klibcgroup                                  x86_64                     0.41-21.el7                          base                                                         66 klibsemanage-python                         x86_64                     2.5-14.el7                           base                                                        113 kpolicycoreutils-python                     x86_64                     2.5-34.el7                           base                                                        457 kpython-IPy                                 noarch                     0.75-6.el7                           base                                                         32 ksetools-libs                               x86_64                     3.3.8-4.el7                          base                                                        620 kTransaction 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 transactionInstalling : setools-libs-3.3.8-4.el7.x86_64                                                                                                                            1/8Installing : libcgroup-0.41-21.el7.x86_64                                                                                                                               2/8Installing : audit-libs-python-2.8.5-4.el7.x86_64                                                                                                                       3/8Installing : python-IPy-0.75-6.el7.noarch                                                                                                                               4/8Installing : libsemanage-python-2.5-14.el7.x86_64                                                                                                                       5/8Installing : checkpolicy-2.5-8.el7.x86_64                                                                                                                               6/8Installing : policycoreutils-python-2.5-34.el7.x86_64                                                                                                                   7/8Installing : 2:container-selinux-2.107-1.el7_6.noarch                                                                                                                   8/8
setsebool:  SELinux is disabled.Verifying  : checkpolicy-2.5-8.el7.x86_64                                                                                                                               1/8Verifying  : libsemanage-python-2.5-14.el7.x86_64                                                                                                                       2/8Verifying  : 2:container-selinux-2.107-1.el7_6.noarch                                                                                                                   3/8Verifying  : python-IPy-0.75-6.el7.noarch                                                                                                                               4/8Verifying  : policycoreutils-python-2.5-34.el7.x86_64                                                                                                                   5/8Verifying  : audit-libs-python-2.8.5-4.el7.x86_64                                                                                                                       6/8Verifying  : libcgroup-0.41-21.el7.x86_64                                                                                                                               7/8Verifying  : setools-libs-3.3.8-4.el7.x86_64                                                                                                                            8/8Installed:container-selinux.noarch 2:2.107-1.el7_6Dependency 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.el7policycoreutils-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.el7Complete!

http://www.ppmy.cn/news/1063001.html

相关文章

【算法系列总结之分组循环篇】

【算法系列总结之分组循环篇】 分组循环1446.连续字符1869.哪种连续子字符串更长1957.删除字符使字符串变好2038.如果相邻两个颜色均相同则删除当前颜色1759.统计同质子字符串的数目2110.股票平滑下跌阶段的数目1578.使绳子变成彩色的最短时间1839.所有元音按顺序排布的最长子字…

深度学习5:长短期记忆网络 – Long short-term memory | LSTM

目录 什么是 LSTM? LSTM的核心思路 什么是 LSTM? 长短期记忆网络——通常被称为 LSTM,是一种特殊的RNN,能够学习长期依赖性。由 Hochreiter 和 Schmidhuber(1997)提出的,并且在接下来的工作中…

【FreeRTOS】【应用篇】任务管理相关函数

文章目录 前言一、函数解析1. 任务挂起 vTaskSuspend()① 使用场景② 设计思路③ 代码 2. 任务恢复 vTaskResume()① 作用② 设计思路③ 代码 3. 挂起任务调度器 vTaskSuspendAll()① 作用② 代码 4. 恢复任务调度器 xTaskResumeAll()① 设计思路② 代码 5. 任务删除函数 vTask…

什么是 RESTful API

什么是 RESTful API? RESTful API是一种设计哲学和架构风格,它基于 HTTP 协议和其状态管理原则,用于构建分布式系统。RESTful API 遵循以下设计原则: 资源层:API 应该代表一种资源,例如一个用户、一个订单…

芯科科技宣布推出下一代暨第三代无线开发平台,打造更智能、更高效的物联网

第三代平台中的人工智能/机器学习引擎可将性能提升100倍以上 Simplicity Studio 6软件开发工具包通过新的开发环境将开发人员带向第三代平台 中国,北京 - 2023年8月22日 – 致力于以安全、智能无线连接技术,建立更互联世界的全球领导厂商Silicon Labs&…

【八股】2023秋招八股复习笔记4(MySQL Redis等)

文章目录 目录1、MySQLmysql索引实现mysql索引优化mysql索引失效的情况mysql 千万数据优化mysql 事务隔离级别 & 实现原理mysql MVCC版本链(undo log)mysql数据同步机制 & 主从复制 (binlog)mysql 日志&数据恢复&…

nodejs+vue养老院管理系统 u1yrv

本智慧养老中心管理系统是为了提高用户查阅信息的效率和管理人员管理信息的工作效率,可以快速存储大量数据,还有信息检索功能,这大大的满足了老人信息和管理员这两者的需求。操作简单易懂,合理分析各个模块的功能,尽可…

Leetcode78. 子集

给你一个整数数组 nums &#xff0c;数组中的元素 互不相同 。返回该数组所有可能的子集&#xff08;幂集&#xff09;。 解集 不能 包含重复的子集。你可以按 任意顺序 返回解集。 回溯法 class Solution {public List<List<Integer>> subsets(int[] nums) {List…