Running ps inside a Debian Docker Container



Published: 2021-10-10 11:41:53 +0000
Categories: Misc,

Language

Misc

Description

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

Snippet

apt-get install procps

Usage Example

apt-get update 
apt-get install procps
ps

Keywords

docker, ps, procps, container,

Latest Posts


Copyright © 2022 Ben Tasker | Sitemap | Privacy Policy
Available at snippets.bentasker.co.uk, http://phecoopwm6x7azx26ctuqcp6673bbqkrqfeoiz2wwk36sady5tqbdpqd.onion and http://snippets.bentasker.i2p
hit counter