Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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. 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

like image 463
ambikanair Avatar asked Jun 03 '19 17:06

ambikanair


2 Answers

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

 RUN microdnf update && microdnf install procps
like image 134
ambikanair Avatar answered Sep 20 '22 08:09

ambikanair


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

like image 43
Cameron Kerr Avatar answered Sep 18 '22 08:09

Cameron Kerr