RHEL/CentOS 问题排查解决

2017-09-17  本文已影响0人  akka9

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 容器镜像。

上一篇 下一篇

猜你喜欢

热点阅读