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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
