我正在构建一个基于 UBI8(Read hat Universal Base Image) 的 docker 镜像,Dockerfile 看起来像
FROM registry.access.redhat.com/ubi8/ubi-minimal
RUN microdnf install sudo zip tar bash procps openssl iptables net-tools tcpdump && microdnf update; microdnf clean all
ENTRYPOINT [ "/usr/sbin/tcpdump" ]
但它未能安装 tcpdump 包。
Downloading metadata...
error: No package matches 'tcpdump'
(process:57): librhsm-WARNING **: 22:03:51.398: Found 0 entitlement certificates
(process:57): librhsm-WARNING **: 22:03:51.400: Found 0 entitlement certificates
(process:57): libdnf-WARNING **: 22:03:51.400: Loading "/etc/dnf/dnf.conf": IniParser: Can't open file
如何修复它以便在 UBI 中安装 tcpdump 包?谢谢。