How to install ps in redhat ubi8/ubi-minimal

29.8k Views Asked by At

For registry.access.redhat.com/ubi8/ubi-minimal this image, i need ps utility to be installed. There is no yum package manager available in the image. Instead , we have microdnf.

microdnf install procps says there is no such package named procps

2

There are 2 best solutions below

2
On BEST ANSWER

In the Dockerfile, add the following statement and you should be able to use ps

 RUN microdnf update && microdnf install procps
0
On

The package name is procps-ng

In ubi8/ubi: yum install procps-ng results in downloading one package, 389kB.

Similarly for ubi8/ubi-minimal: microdnf install procps-ng