bash: ps: command not found Error after creating docker containr

After creating docker container not able to check process ID for nginx on Docker container. I am following the Docker LifeCycle Container video for Docker quick start, need help!!!!

root@2ca0bff96695:/# ps  aux | grep nginx

bash: ps: command not found


  • post-author-pic
    Ermin K
    09-24-2018

    Try installing the "procps" package. Inside the container.  You can install it with "yum install procps" or "apt-get procps" depending on the distribution. And then you should be able to run the "ps" command.

Looking For Team Training?

Learn More