28

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

Cameron Kerr
  • 1,725
  • 16
  • 23
ambikanair
  • 4,004
  • 11
  • 43
  • 83

2 Answers2

34

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

 RUN microdnf update && microdnf install procps
CEH
  • 5,701
  • 2
  • 16
  • 40
ambikanair
  • 4,004
  • 11
  • 43
  • 83
  • 2
    The baggage this package brings with it, is surprising. I simply refuse to believe that "ps" requires "cpio", "cracklib", "systemd" and others. – Ed Randall Feb 17 '21 at 08:39
  • Upvoted for the info for using ```RUN microdnf update && microdnf install``` due to the absence of yum package management – djmonki Oct 07 '22 at 08:38
6

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

Cameron Kerr
  • 1,725
  • 16
  • 23