Docker is a lightweight virtual machine container. To minimize the image, most of the official distributions were erased most the unnecessary system tools.

After pulled the fedora, I found command "ps" not found in default. ps can be found in package procps.

Install command is very easy:

dnf install procps -y

See also:

Categories: Code

Yu

Ideals are like the stars: we never reach them, but like the mariners of the sea, we chart our course by them.

4 Comments

Donald · May 7, 2017 at 20:40

Google Chrome 50.0.2661.102 Google Chrome 50.0.2661.102 Windows 10 x64 Edition Windows 10 x64 Edition

bash: dnf: command not found

    yu · May 9, 2017 at 04:27

    Google Chrome 57.0.2987.133 Google Chrome 57.0.2987.133 Mac OS X  10.12.4 Mac OS X 10.12.4

    @Donald The key point is you should install a package named as “procps”.

    dnf (https://fedoraproject.org/wiki/DNF ) is only for fedora 22+.

    if you are using RHEL, you may use yum instead, if you are using ubuntu, you may use “apt-get”

hans · April 19, 2022 at 05:34

Firefox 99.0 Firefox 99.0 Fedora x64 Fedora x64

In Docker images there’s oftentimes only ‘microdnf’ available instead of ‘dnf’.

    Yu · April 28, 2022 at 01:58

    Google Chrome 100.0.4896.127 Google Chrome 100.0.4896.127 Mac OS X  10.15.7 Mac OS X 10.15.7

    That’s good to know!

    I used to use alpine instead to shrink the image, and when one project must use fedora, centos, rhel etc., the base image could already super huge.

Leave a Reply

Your email address will not be published. Required fields are marked *