RHEL/CentOS 问题排查解决

yum报错一堆 yum is a duplicate with ,无法安装新软件

yum-complete-transaction --cleanup-only
package-cleanup --cleandupes
yum update

UBI 镜像

https://access.redhat.com/documentation/zh-cn/red_hat_enterprise_linux/8/html/building_running_and_managing_containers/assembly_types-of-container-images_building-running-and-managing-containers
https://bugzilla.redhat.com/show_bug.cgi?id=2020026


文件大小区别
docker pull redhat/ubi8-micro:latest        13M
docker pull redhat/ubi8-minimal:latest     37M
docker pull redhat/ubi8:latest                   77M
docker pull redhat/ubi8-init:latest             82M


podman pull registry.access.redhat.com/ubi8/ubi

podman pull registry.redhat.io/ubi9-beta/ubi
podman pull registry.access.redhat.com/ubi9-beta/ubi

podman pull registry.access.redhat.com/ubi9-beta/ubi-init
podman pull registry.access.redhat.com/ubi9-beta/ubi-micro


$ podman images
REPOSITORY                                         TAG               IMAGE ID       CREATED        SIZE
registry.access.redhat.com/ubi9-beta/ubi-micro     latest            dc252c7a3afc   5 weeks ago    24.6MB
registry.access.redhat.com/ubi9-beta/ubi-init      latest            7625ab1d1134   5 weeks ago    227MB
registry.access.redhat.com/ubi9-beta/ubi           latest            28b0a4b69d9b   5 weeks ago    210MB
registry.access.redhat.com/ubi9-beta/ubi-minimal   latest            fcf4fa2ad9f7   5 weeks ago    93.9MB


$ sudo wget -O /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta https://www.redhat.com/security/data/f21541eb.txt
$ sudo podman image trust set -f /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta registry.access.redhat.com/ubi9-beta
$ sudo podman image trust set -f /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta registry.access.redhat.com/rhel9-beta


ubi8-init:

CMD 被设置为 /sbin/init 以默认启动 systemd Init 服务
包括 ps 并处理相关命令(procps-ng 软件包)
将 SIGRTMIN+3 设置为 StopSignal,因为 ubi8-init 中的 systemd 忽略常规信号退出(SIGTERM 和 SIGKILL),但在接收时会终止 SIGRTMIN+3

ubi8:

CMD 被设置为 /bin/bash
不包含 ps 并处理相关命令(procps-ng 软件包)
不忽略退出的普通信号(SIGTERM 和 SIGKILL)

ubi-micro 是最小的 UBI 镜像,它排除了软件包管理器及其所有依赖项,它们通常包含在容器镜像中。这可最小化基于 ubi-micro 镜像的容器镜像攻击面,并适用于最小应用程序,即使您将 UBI 标准、最小或 Init 用于其他应用程序。没有 Linux 发行包的容器镜像被称为 Distroless 容器镜像。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 背景: 阅读新闻 12C CDB模式下RMAN备份与恢复 [日期:2016-11-29] 来源:Linux社区 作...
    阳屯okyepd阅读 3,655评论 0 7
  • 背景 一年多以前我在知乎上答了有关LeetCode的问题, 分享了一些自己做题目的经验。 张土汪:刷leetcod...
    土汪阅读 12,790评论 0 33
  • Android 自定义View的各种姿势1 Activity的显示之ViewRootImpl详解 Activity...
    passiontim阅读 174,332评论 25 709
  • 青春年少你我知道 如果那天我没有遇见你 就不会有如今的心痛 不会有如今的伤痕累累 我喜欢你已经有两个月了 从201...
    奈何明月花阅读 260评论 0 1
  • 作者是小米公司的合伙人之一。文笔以及思路都厉害。 他一直在强调小米只是雷军因为梦想做一部自己喜欢的手机而创建的。以...
    蓝先森的照相机阅读 160评论 1 0