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.

2 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”

Leave a Reply

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