Hacker News new | ask | show | jobs
by pletnes 1286 days ago
I know about some of these tricks. However, containers are popular and typically don’t have the tools installed, and you can’t necessarily sudo either. What do people replace these tricks with, in some cloud container or k8s pods?
1 comments

If /proc is mounted in the container you can grab the same information (more tediously) by looking at /proc/<pid>
Some things are there, but real tedious, yes. I haven’t found something convenient and if you’re not root, some of the useful things are inaccessible.
Could you copy in (or sideload) a statically linked "top" binary?