Running ps inside a Debian Docker Container (Misc)

Just occassionally, you have to exec into a docker container in order to troubleshoot whatever app you're running.

A good image won't have unnecessary tools installed though, so things like ps tend to be missing.

Whilst you can install these with apt I can never remember the package name for ps so this snippet exists so that I don't have to

Details

  • Language: Misc

Snippet

apt-get install procps

Usage Example

apt-get update 
apt-get install procps
ps