基本图像为redhat泛8/ubi
Step 5/10 : RUN yum install ca-certificates e2fsprogs xfsprogs util-linux mdadm parted lvm2 libudev-devel -y
---> Running in 792zfd35b185
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered with an entitlement server. You can use subscription-manager to register.
Red Hat Universal Base Image 8 (RPMs) - BaseOS 2.1 MB/s | 803 kB 00:00
Red Hat Universal Base Image 8 (RPMs) - AppStre 5.9 MB/s | 3.0 MB 00:00
Red Hat Universal Base Image 8 (RPMs) - CodeRea 120 kB/s | 18 kB 00:00
Package ca-certificates-2021.2.50-80.0.el8_4.noarch is already installed.
No match for argument: e2fsprogs
No match for argument: xfsprogs
Package util-linux-2.32.1-35.el8.x86_64 is already installed.
No match for argument: mdadm
No match for argument: parted
Error: Unable to find a match: e2fsprogs xfsprogs mdadm parted
The command '/bin/sh -c yum install ca-certificates e2fsprogs xfsprogs util-linux mdadm parted lvm2 libudev-devel -y' returned a non-zero code: 1Docker文件如下
#Docker file
FROM registry.access.redhat.com/ubi8/ubi
...
...
...
RUN yum install ca-certificates e2fsprogs xfsprogs util-linux nvme-cli mdadm parted lvm2 libudev-devel -y如何解决这个问题。我的主机上有一个活动订阅。
发布于 2022-06-24 09:18:59
卸载码头和安装Buildah工作
https://stackoverflow.com/questions/72729502
复制相似问题