How to install ps in redhat ubi8/ubi-minimal
Asked Answered
S

2

34

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

Singlephase answered 3/6, 2019 at 17:45 Comment(0)
S
41

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

 RUN microdnf update && microdnf install procps
Singlephase answered 4/6, 2019 at 9:24 Comment(2)
The baggage this package brings with it, is surprising. I simply refuse to believe that "ps" requires "cpio", "cracklib", "systemd" and others.Conni
Upvoted for the info for using RUN microdnf update && microdnf install due to the absence of yum package managementBarman
G
8

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

Garvin answered 1/7, 2021 at 0:34 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.