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
文件大小區(qū)別
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 被設(shè)置為 /sbin/init 以默認(rèn)啟動 systemd Init 服務(wù)
包括 ps 并處理相關(guān)命令(procps-ng 軟件包)
將 SIGRTMIN+3 設(shè)置為 StopSignal,因為 ubi8-init 中的 systemd 忽略常規(guī)信號退出(SIGTERM 和 SIGKILL),但在接收時會終止 SIGRTMIN+3
ubi8:
CMD 被設(shè)置為 /bin/bash
不包含 ps 并處理相關(guān)命令(procps-ng 軟件包)
不忽略退出的普通信號(SIGTERM 和 SIGKILL)
ubi-micro 是最小的 UBI 鏡像,它排除了軟件包管理器及其所有依賴項,它們通常包含在容器鏡像中朽肥。這可最小化基于 ubi-micro 鏡像的容器鏡像攻擊面,并適用于最小應(yīng)用程序,即使您將 UBI 標(biāo)準(zhǔn)、最小或 Init 用于其他應(yīng)用程序。沒有 Linux 發(fā)行包的容器鏡像被稱為 Distroless 容器鏡像。