[英]How to install ps in redhat ubi8/ubi-minimal
For registry.access.redhat.com/ubi8/ubi-minimal
this image, i need ps
utility to be installed.对于
registry.access.redhat.com/ubi8/ubi-minimal
这个镜像,我需要安装ps
实用程序。 There is no yum
package manager available in the image.图像中没有可用的
yum
包管理器。 Instead , we have microdnf
.相反,我们有
microdnf
。
microdnf install procps
says there is no such package named procps
microdnf install procps
说没有名为procps
包
在 Dockerfile 中,添加以下语句,您应该可以使用ps
RUN microdnf update && microdnf install procps
The package name is procps-ng包名是 procps-ng
In ubi8/ubi: yum install procps-ng
results in downloading one package, 389kB.在 ubi8/ubi 中:
yum install procps-ng
导致下载一个包,389kB。
Similarly for ubi8/ubi-minimal: microdnf install procps-ng
ubi8/ubi-minimal 类似:
microdnf install procps-ng
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.