How to find container ID from process ID?
Issue
-
When there are same processes like
httpdon Node, how to identify the container ID by the PID? -
We are trying to identify which container processes by
lsof, butps auxoutputs manyhttpdprocess so we cannot distinguish which PID matches tolsof.
Environment
-
Red Hat Enterprise Linux
- 7.x
-
OpenShift Container Platform
- 3.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.