简体   繁体   English

如何在redhat ubi8/ubi-minimal中安装ps

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM